]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_minibuf_unwind): Preserve Vdeactivate_mark.
authorRichard M. Stallman <rms@gnu.org>
Sat, 24 Sep 1994 01:41:54 +0000 (01:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 24 Sep 1994 01:41:54 +0000 (01:41 +0000)
src/minibuf.c

index 3654c01d845c8dd11936f5a9377a4344771d6ea4..d5f75bd35b7c72abcaa60dde0e3cbf7088f053df 100644 (file)
@@ -358,6 +358,8 @@ void
 read_minibuf_unwind (data)
      Lisp_Object data;
 {
+  Lisp_Object old_deactivate_mark;
+
   /* We are exiting the minibuffer one way or the other,
      so run the hook.  */
   if (!NILP (Vminibuffer_exit_hook) && !EQ (Vminibuffer_exit_hook, Qunbound)
@@ -369,7 +371,10 @@ read_minibuf_unwind (data)
 
   /* Prevent error in erase-buffer.  */
   current_buffer->read_only = Qnil;
+
+  old_deactivate_mark = Vdeactivate_mark;
   Ferase_buffer ();
+  Vdeactivate_mark = old_deactivate_mark;
 
   /* If this was a recursive minibuffer,
      tie the minibuffer window back to the outer level minibuffer buffer */