changeset 17513:ea3acb6b992a

(transient-mark-mode): Print message if used interactively.
author Richard M. Stallman <rms@gnu.org>
date Sun, 20 Apr 1997 01:28:20 +0000
parents 50ada9a65e3d
children 335bd3dea3ea
files lisp/simple.el
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sun Apr 20 01:20:58 1997 +0000
+++ b/lisp/simple.el	Sun Apr 20 01:28:20 1997 +0000
@@ -1635,7 +1635,7 @@
     (goto-char omark)
     nil))
 
-(defun transient-mark-mode (arg)
+(defun transient-mark-mode (arg &optional print-message)
   "Toggle Transient Mark mode.
 With arg, turn Transient Mark mode on if arg is positive, off otherwise.
 
@@ -1644,11 +1644,14 @@
 So do certain other operations that set the mark
 but whose main purpose is something else--for example,
 incremental search, \\[beginning-of-buffer], and \\[end-of-buffer]."
-  (interactive "P")
+  (interactive "P\np")
   (setq transient-mark-mode
 	(if (null arg)
 	    (not transient-mark-mode)
-	  (> (prefix-numeric-value arg) 0))))
+	  (> (prefix-numeric-value arg) 0)))
+  (if transient-mark-mode
+      (message "Transient Mark mode enabled")
+    (message "Transient Mark mode disabled")))
 
 (defun pop-global-mark ()
   "Pop off global mark ring and jump to the top location."