aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2002-05-27 12:13:56 +0000
committerKim F. Storm <[email protected]>2002-05-27 12:13:56 +0000
commitd00ffe213e842d85380d1ba2e6d9e96d11bdc104 (patch)
treebbf28bde177cd634e712b4f62465dcdfacba190f
parent892de428586735edcdc2858e9935141059a8a25c (diff)
(push-mark-command): Added optional NOMSG arg.
-rw-r--r--lisp/simple.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index ad21eccc39..a270104705 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2321,15 +2321,17 @@ Start discarding off end if gets this big."
(goto-char (mark t))
(pop-mark)))
-(defun push-mark-command (arg)
+(defun push-mark-command (arg &optional nomsg)
"Set mark at where point is.
-If no prefix arg and mark is already set there, just activate it."
+If no prefix arg and mark is already set there, just activate it.
+Display `Mark set' unless the optional second arg NOMSG is non-nil."
(interactive "P")
(let ((mark (marker-position (mark-marker))))
(if (or arg (null mark) (/= mark (point)))
- (push-mark nil nil t)
+ (push-mark nil nomsg t)
(setq mark-active t)
- (message "Mark activated"))))
+ (unless nomsg
+ (message "Mark activated")))))
(defun set-mark-command (arg)
"Set mark at where point is, or jump to mark.