aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-03-21 23:49:23 +0000
committerKim F. Storm2003-03-21 23:49:23 +0000
commit66ef2df9d64a4a63f9dcf53be489158a8f1dd5e5 (patch)
treeecd81608aab831d9debd47317aab3684ca02f166
parent6e6410cf9db1bc440eab0991c68375040f4e7a78 (diff)
downloademacs-66ef2df9d64a4a63f9dcf53be489158a8f1dd5e5.tar.gz
emacs-66ef2df9d64a4a63f9dcf53be489158a8f1dd5e5.zip
(set-mark-command): Doc fixes.
Allow pop-global-mark to be repeated with C-x C-SPC C-SPC... C-u C-u C-SPC now unconditionally sets the mark.
-rw-r--r--lisp/simple.el34
1 files changed, 23 insertions, 11 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 82859767b18..0406bde7445 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2447,13 +2447,22 @@ Display `Mark set' unless the optional second arg NOMSG is non-nil."
2447 2447
2448(defun set-mark-command (arg) 2448(defun set-mark-command (arg)
2449 "Set mark at where point is, or jump to mark. 2449 "Set mark at where point is, or jump to mark.
2450With no prefix argument, set mark, push old mark position on local mark 2450With no prefix argument, set mark, and push old mark position on local
2451ring, and push mark on global mark ring. Immediately repeating the 2451mark ring; also push mark on global mark ring if last mark was set in
2452command activates `transient-mark-mode' temporarily. 2452another buffer. Immediately repeating the command activates
2453 2453`transient-mark-mode' temporarily.
2454With argument, jump to mark, and pop a new position for mark off the ring 2454
2455\(does not affect global mark ring\). Repeating the command without 2455With argument, e.g. \\[universal-argument] \\[set-mark-command], \
2456an argument jumps to the next position off the mark ring. 2456jump to mark, and pop a new position
2457for mark off the local mark ring \(this does not affect the global
2458mark ring\). Use \\[pop-global-mark] to jump to a mark off the global
2459mark ring \(see `pop-global-mark'\).
2460Repeating the \\[set-mark-command] command without the prefix jumps to the next
2461position off the local (or global) mark ring.
2462
2463With a double \\[universal-argument] prefix argument, e.g. \\[universal-argument] \
2464\\[universal-argument] \\[set-mark-command], unconditionally
2465set mark where point is.
2457 2466
2458Novice Emacs Lisp programmers often try to use the mark for the wrong 2467Novice Emacs Lisp programmers often try to use the mark for the wrong
2459purposes. See the documentation of `set-mark' for more information." 2468purposes. See the documentation of `set-mark' for more information."
@@ -2465,11 +2474,14 @@ purposes. See the documentation of `set-mark' for more information."
2465 (if arg 2474 (if arg
2466 (pop-to-mark-command) 2475 (pop-to-mark-command)
2467 (push-mark-command t))) 2476 (push-mark-command t)))
2477 ((and (consp arg) (> (prefix-numeric-value arg) 4))
2478 (push-mark-command nil))
2468 ((eq last-command 'pop-to-mark-command) 2479 ((eq last-command 'pop-to-mark-command)
2469 (if (and (consp arg) (> (prefix-numeric-value arg) 4)) 2480 (setq this-command 'pop-to-mark-command)
2470 (push-mark-command nil) 2481 (pop-to-mark-command))
2471 (setq this-command 'pop-to-mark-command) 2482 ((and (eq last-command 'pop-global-mark) (not arg))
2472 (pop-to-mark-command))) 2483 (setq this-command 'pop-global-mark)
2484 (pop-global-mark))
2473 (arg 2485 (arg
2474 (setq this-command 'pop-to-mark-command) 2486 (setq this-command 'pop-to-mark-command)
2475 (pop-to-mark-command)) 2487 (pop-to-mark-command))