Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/src/coding.c Sun Dec 07 00:58:16 2008 +0000 +++ b/src/coding.c Sun Dec 07 00:58:47 2008 +0000 @@ -7032,6 +7032,10 @@ } current = current_buffer; set_buffer_internal (XBUFFER (workbuf)); + /* We can't allow modification hooks to run in the work buffer. For + instance, directory_files_internal assumes that file decoding + doesn't compile new regexps. */ + Fset (Fmake_local_variable (Qinhibit_modification_hooks), Qt); Ferase_buffer (); current_buffer->undo_list = Qt; current_buffer->enable_multibyte_characters = multibyte ? Qt : Qnil;