From bc329caae6a6991ff28c38144c210bf78528249b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 31 May 2014 21:23:53 +0300 Subject: [PATCH] Hopefully fix bug #16433 with corruption of newline_cache in Rmail. src/fileio.c (Finsert_file_contents): Call prepare_to_modify_buffer with PT, not GPT. --- src/ChangeLog | 3 +++ src/fileio.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2daee8c2d9..bde0ec68c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2014-05-31 Eli Zaretskii + * 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. diff --git a/src/fileio.c b/src/fileio.c index 03519eda68..3b7961b930 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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); -- 2.20.1