Mercurial > emacs
comparison src/coding.c @ 52016:95dd8ee86d65
(run_pre_post_conversion_on_str): Use delete_all_overlays.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Tue, 22 Jul 2003 19:06:12 +0000 |
| parents | 1d29dcb76e2b |
| children | 5480186284b2 |
comparison
equal
deleted
inserted
replaced
| 52015:61f03c9c44c3 | 52016:95dd8ee86d65 |
|---|---|
| 5996 GCPRO2 (str, old_deactivate_mark); | 5996 GCPRO2 (str, old_deactivate_mark); |
| 5997 | 5997 |
| 5998 buffer = Fget_buffer_create (build_string (" *code-converting-work*")); | 5998 buffer = Fget_buffer_create (build_string (" *code-converting-work*")); |
| 5999 buf = XBUFFER (buffer); | 5999 buf = XBUFFER (buffer); |
| 6000 | 6000 |
| 6001 delete_all_overlays (buf); | |
| 6001 buf->directory = current_buffer->directory; | 6002 buf->directory = current_buffer->directory; |
| 6002 buf->read_only = Qnil; | 6003 buf->read_only = Qnil; |
| 6003 buf->filename = Qnil; | 6004 buf->filename = Qnil; |
| 6004 buf->undo_list = Qt; | 6005 buf->undo_list = Qt; |
| 6005 buf->overlays_before = NULL; | 6006 eassert (buf->overlays_before == NULL); |
| 6006 buf->overlays_after = NULL; | 6007 eassert (buf->overlays_after == NULL); |
| 6007 | 6008 |
| 6008 set_buffer_internal (buf); | 6009 set_buffer_internal (buf); |
| 6009 /* We must insert the contents of STR as is without | 6010 /* We must insert the contents of STR as is without |
| 6010 unibyte<->multibyte conversion. For that, we adjust the | 6011 unibyte<->multibyte conversion. For that, we adjust the |
| 6011 multibyteness of the working buffer to that of STR. */ | 6012 multibyteness of the working buffer to that of STR. */ |
