diff lisp/simple.el @ 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 3d3717bb5405
children 763a8b8e7363
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!