diff options
| author | Richard M. Stallman <rms@gnu.org> | 1997-04-20 01:28:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1997-04-20 01:28:20 +0000 |
| commit | 2c5d387c637092bc6baf1a5fce97721b52b810a9 (patch) | |
| tree | b2192d3a4836a3969c88a7d0a40d8d531a4fead5 | |
| parent | f0aef6bf09e972b2bb3a904f7b411efd3de1c2c2 (diff) | |
| download | emacs-2c5d387c637092bc6baf1a5fce97721b52b810a9.tar.gz | |
(transient-mark-mode): Print message if used interactively.
| -rw-r--r-- | lisp/simple.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 0f2086a4e51..003c50d9639 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1635,7 +1635,7 @@ and it reactivates the mark." (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 @@ Changing the buffer \"deactivates\" the mark. 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." |
