diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index ff0e5b0643e..e92dfa45e21 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7032,6 +7032,10 @@ make_conversion_work_buffer (multibyte) | |||
| 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; |