changeset 3666:c7ff787b096f

(read_process_output): Don't deactivate the mark. Do restore Vdeactivate_mark, so that no one else deactivates it.
author Richard M. Stallman <rms@gnu.org>
date Fri, 11 Jun 1993 21:06:14 +0000
parents 0cffa82ec7de
children f4a7ac2ec651
files src/process.c
diffstat 1 files changed, 2 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Fri Jun 11 20:50:08 1993 +0000
+++ b/src/process.c	Fri Jun 11 21:06:14 1993 +0000
@@ -2082,16 +2082,7 @@
       specbind (Qinhibit_quit, Qt);
       call2 (outstream, proc, make_string (chars, nchars));
 
-      /* Deactivate the mark now, so it doesn't happen
-	 *after* the following command.  */
-      if (!NILP (current_buffer->mark_active))
-	{
-	  if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode))
-	    {
-	      current_buffer->mark_active = Qnil;
-	      call1 (Vrun_hooks, intern ("deactivate-mark-hook"));
-	    }
-	}
+      /* Handling the process output should not deactivate the mark.  */
       Vdeactivate_mark = odeactivate;
 
 #ifdef VMS
@@ -2153,17 +2144,7 @@
       if (XFASTINT (old_begv) != BEGV || XFASTINT (old_zv) != ZV)
 	Fnarrow_to_region (old_begv, old_zv);
 
-      /* Deactivate the mark now, so it doesn't happen
-	 *after* the following command.  */
-      if (!NILP (current_buffer->mark_active))
-	{
-	  if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode))
-	    {
-	      current_buffer->mark_active = Qnil;
-	      call1 (Vrun_hooks, intern ("deactivate-mark-hook"));
-	    }
-	}
-
+      /* Handling the process output should not deactivate the mark.  */
       Vdeactivate_mark = odeactivate;
 
       current_buffer->read_only = old_read_only;