1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00

(Finsert_file_contents): Use delete_all_overlays.

This commit is contained in:
Stefan Monnier 2003-07-22 19:07:49 +00:00
parent fd53195196
commit 29ea8ae9da
2 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,14 @@
2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
* xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
* buffer.c (delete_all_overlays): New function.
* buffer.h (delete_all_overlays): Declare.
* coding.c (run_pre_post_conversion_on_str):
* print.c (temp_output_buffer_setup):
* fileio.c (Finsert_file_contents):
* minibuf.c (get_minibuffer): Use it.
2003-07-22 Andrew Choi <akochoi@shaw.ca>
* unexmacosx.c (unexec_regions_sort_compare):
@ -18,7 +29,7 @@
* s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
* fns.c (Flocale_info): Renamed from Flanginfo. Doc fixes.
* fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
(syms_of_fns): Corresponding change.
* alloc.c (syms_of_alloc): Doc fixes.

View file

@ -3840,12 +3840,13 @@ actually used. */)
buffer = Fget_buffer_create (build_string (" *code-converting-work*"));
buf = XBUFFER (buffer);
delete_all_overlays (buf);
buf->directory = current_buffer->directory;
buf->read_only = Qnil;
buf->filename = Qnil;
buf->undo_list = Qt;
buf->overlays_before = NULL;
buf->overlays_after = NULL;
eassert (buf->overlays_before == NULL);
eassert (buf->overlays_after == NULL);
set_buffer_internal (buf);
Ferase_buffer ();