diff options
| author | Kim F. Storm | 2002-05-27 12:13:56 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-05-27 12:13:56 +0000 |
| commit | d00ffe213e842d85380d1ba2e6d9e96d11bdc104 (patch) | |
| tree | bbf28bde177cd634e712b4f62465dcdfacba190f | |
| parent | 892de428586735edcdc2858e9935141059a8a25c (diff) | |
| download | emacs-d00ffe213e842d85380d1ba2e6d9e96d11bdc104.tar.gz emacs-d00ffe213e842d85380d1ba2e6d9e96d11bdc104.zip | |
(push-mark-command): Added optional NOMSG arg.
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index ad21eccc393..a2701047057 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2321,15 +2321,17 @@ Start discarding off end if gets this big." | |||
| 2321 | (goto-char (mark t)) | 2321 | (goto-char (mark t)) |
| 2322 | (pop-mark))) | 2322 | (pop-mark))) |
| 2323 | 2323 | ||
| 2324 | (defun push-mark-command (arg) | 2324 | (defun push-mark-command (arg &optional nomsg) |
| 2325 | "Set mark at where point is. | 2325 | "Set mark at where point is. |
| 2326 | If no prefix arg and mark is already set there, just activate it." | 2326 | If no prefix arg and mark is already set there, just activate it. |
| 2327 | Display `Mark set' unless the optional second arg NOMSG is non-nil." | ||
| 2327 | (interactive "P") | 2328 | (interactive "P") |
| 2328 | (let ((mark (marker-position (mark-marker)))) | 2329 | (let ((mark (marker-position (mark-marker)))) |
| 2329 | (if (or arg (null mark) (/= mark (point))) | 2330 | (if (or arg (null mark) (/= mark (point))) |
| 2330 | (push-mark nil nil t) | 2331 | (push-mark nil nomsg t) |
| 2331 | (setq mark-active t) | 2332 | (setq mark-active t) |
| 2332 | (message "Mark activated")))) | 2333 | (unless nomsg |
| 2334 | (message "Mark activated"))))) | ||
| 2333 | 2335 | ||
| 2334 | (defun set-mark-command (arg) | 2336 | (defun set-mark-command (arg) |
| 2335 | "Set mark at where point is, or jump to mark. | 2337 | "Set mark at where point is, or jump to mark. |