changeset 7726:0998ca7d922c

(deactivate-mark): Do nothing unless transient-mark-mode.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 May 1994 12:04:04 +0000
parents 4c80934ca1b2
children 741ba17eeb20
files lisp/simple.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sat May 28 10:43:10 1994 +0000
+++ b/lisp/simple.el	Sat May 28 12:04:04 1994 +0000
@@ -1305,8 +1305,10 @@
   "Deactivate the mark by setting `mark-active' to nil.
 \(That makes a difference only in Transient Mark mode.)
 Also runs the hook `deactivate-mark-hook'."
-  (setq mark-active nil)
-  (run-hooks 'deactivate-mark-hook))
+  (if transient-mark-mode
+      (progn
+	(setq mark-active nil)
+	(run-hooks 'deactivate-mark-hook))))
 
 (defun set-mark (pos)
   "Set this buffer's mark to POS.  Don't use this function!