diff options
| author | Chong Yidong | 2008-12-07 00:58:47 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-12-07 00:58:47 +0000 |
| commit | df36ff1f38e46e3bedc3ccab2a584ad5925ef497 (patch) | |
| tree | 94bf5911957f1307aee494a05ab10cc69712fe4f /src/coding.c | |
| parent | b7e1d896e0651d34fda0dca3ebe1874b3bfddc01 (diff) | |
| download | emacs-df36ff1f38e46e3bedc3ccab2a584ad5925ef497.tar.gz emacs-df36ff1f38e46e3bedc3ccab2a584ad5925ef497.zip | |
(make_conversion_work_buffer): Disable buffer modification hooks in
the work buffer.
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; |