# HG changeset patch # User Chong Yidong # Date 1228611527 0 # Node ID 46114a72fb0efc5da3c381fe45915f7d15b1a752 # Parent 5a6b0836b78be149aea32910b989318e4371355e (make_conversion_work_buffer): Disable buffer modification hooks in the work buffer. diff -r 5a6b0836b78b -r 46114a72fb0e src/coding.c --- 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;