From: Stefan Monnier Date: Mon, 13 Apr 2015 14:16:38 +0000 (-0400) Subject: * src/*.c: Set deactivate_mark buffer-locally X-Git-Tag: emacs-25.0.90~2452 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9d78e18c66dc46f0988257e0029213ac7eff62b;p=emacs.git * src/*.c: Set deactivate_mark buffer-locally Fixes: debbugs:20260 * src/insdel.c (prepare_to_modify_buffer_1): * src/fileio.c (Finsert_file_contents): Set deactivate_mark buffer-locally. --- diff --git a/src/fileio.c b/src/fileio.c index d4e12cbe277..a6e7fbb83d2 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4165,7 +4165,7 @@ by calling `format-decode', which see. */) Vdeactivate_mark = old_Vdeactivate_mark; } else - Vdeactivate_mark = Qt; + Fset (Qdeactivate_mark, Qt); emacs_close (fd); clear_unwind_protect (fd_index); diff --git a/src/insdel.c b/src/insdel.c index 80650be25ae..22c2bcccb82 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1846,7 +1846,7 @@ prepare_to_modify_buffer_1 (ptrdiff_t start, ptrdiff_t end, = call1 (Fsymbol_value (Qregion_extract_function), Qnil); signal_before_change (start, end, preserve_ptr); - Vdeactivate_mark = Qt; + Fset (Qdeactivate_mark, Qt); } /* Like above, but called when we know that the buffer text