Mercurial > emacs
comparison src/coding.c @ 100262:46114a72fb0e
(make_conversion_work_buffer): Disable buffer modification hooks in
the work buffer.
| author | Chong Yidong <cyd@stupidchicken.com> |
|---|---|
| date | Sun, 07 Dec 2008 00:58:47 +0000 |
| parents | 5706ca7c3d02 |
| children | 3e044fa54e4f |
comparison
equal
deleted
inserted
replaced
| 100261:5a6b0836b78b | 100262:46114a72fb0e |
|---|---|
| 7030 = Fget_buffer_create (Vcode_conversion_workbuf_name); | 7030 = Fget_buffer_create (Vcode_conversion_workbuf_name); |
| 7031 workbuf = Vcode_conversion_reused_workbuf; | 7031 workbuf = Vcode_conversion_reused_workbuf; |
| 7032 } | 7032 } |
| 7033 current = current_buffer; | 7033 current = current_buffer; |
| 7034 set_buffer_internal (XBUFFER (workbuf)); | 7034 set_buffer_internal (XBUFFER (workbuf)); |
| 7035 /* We can't allow modification hooks to run in the work buffer. For | |
| 7036 instance, directory_files_internal assumes that file decoding | |
| 7037 doesn't compile new regexps. */ | |
| 7038 Fset (Fmake_local_variable (Qinhibit_modification_hooks), Qt); | |
| 7035 Ferase_buffer (); | 7039 Ferase_buffer (); |
| 7036 current_buffer->undo_list = Qt; | 7040 current_buffer->undo_list = Qt; |
| 7037 current_buffer->enable_multibyte_characters = multibyte ? Qt : Qnil; | 7041 current_buffer->enable_multibyte_characters = multibyte ? Qt : Qnil; |
| 7038 set_buffer_internal (current); | 7042 set_buffer_internal (current); |
| 7039 return workbuf; | 7043 return workbuf; |
