Hopefully fix bug #16433 with corruption of newline_cache in Rmail.
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 May 2014 18:23:53 +0000 (21:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 31 May 2014 18:23:53 +0000 (21:23 +0300)
 src/fileio.c (Finsert_file_contents): Call prepare_to_modify_buffer
 with PT, not GPT.

src/ChangeLog
src/fileio.c

index 2daee8c..bde0ec6 100644 (file)
@@ -1,5 +1,8 @@
 2014-05-31  Eli Zaretskii  <eliz@gnu.org>
 
+       * fileio.c (Finsert_file_contents): Call prepare_to_modify_buffer
+       with PT, not GPT.  (Bug#16433)
+
        Revert last changes to GDB-visible symbols.
        * lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): Delete macros.
        (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Don't use them.
index 03519ed..3b7961b 100644 (file)
@@ -4087,7 +4087,7 @@ by calling `format-decode', which see.  */)
          && SAVE_MODIFF >= MODIFF)
        we_locked_file = 1;
 #endif /* CLASH_DETECTION */
-      prepare_to_modify_buffer (GPT, GPT, NULL);
+      prepare_to_modify_buffer (PT, PT, NULL);
     }
 
   move_gap_both (PT, PT_BYTE);