aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-04-21 08:55:15 +0000
committerRichard M. Stallman2007-04-21 08:55:15 +0000
commitfb2c06a3b9dabb7b443c47751385ac6afb7aed57 (patch)
tree0a02ab926637c81ae5fc39205a9016c0f46dbd88
parent3173ce7e9fb84c2ab968dd534dcc2435ebaaa9fd (diff)
downloademacs-fb2c06a3b9dabb7b443c47751385ac6afb7aed57.tar.gz
emacs-fb2c06a3b9dabb7b443c47751385ac6afb7aed57.zip
(pop-to-mark-command): Display message "mark popped" if point does not move.
(set-mark-command): Doc fix.
-rw-r--r--lisp/simple.el26
1 files changed, 15 insertions, 11 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 02a396614f9..49cae2ceb46 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3179,6 +3179,8 @@ Start discarding off end if gets this big."
3179 (interactive) 3179 (interactive)
3180 (if (null (mark t)) 3180 (if (null (mark t))
3181 (error "No mark set in this buffer") 3181 (error "No mark set in this buffer")
3182 (if (= (point) (mark t))
3183 (message "Mark popped"))
3182 (goto-char (mark t)) 3184 (goto-char (mark t))
3183 (pop-mark))) 3185 (pop-mark)))
3184 3186
@@ -3203,17 +3205,19 @@ will pop twice."
3203 :group 'editing) 3205 :group 'editing)
3204 3206
3205(defun set-mark-command (arg) 3207(defun set-mark-command (arg)
3206 "Set mark where point is, or jump to mark. 3208 "Set the mark where point is, or jump to the mark.
3207Setting the mark also sets the \"region\", which is the closest 3209Setting the mark also alters the region, which is the text
3208equivalent in Emacs to what some editors call the \"selection\". 3210between point and mark; this is the closest equivalent in
3211Emacs to what some editors call the \"selection\".
3209 3212
3210With no prefix argument, set mark and push old mark position on local 3213With no prefix argument, set the mark at point, and push the
3211mark ring. Also, push mark on global mark ring, if last mark was set in 3214old mark position on local mark ring. Also push the old mark on
3212another buffer. Immediately repeating the command activates 3215global mark ring, if the previous mark was set in another buffer.
3213`transient-mark-mode' temporarily. 3216
3217Immediately repeating this command activates `transient-mark-mode' temporarily.
3214 3218
3215With prefix argument \(e.g., \\[universal-argument] \\[set-mark-command]\), \ 3219With prefix argument \(e.g., \\[universal-argument] \\[set-mark-command]\), \
3216jump to mark, and set mark from 3220jump to the mark, and set the mark from
3217position popped off the local mark ring \(this does not affect the global 3221position popped off the local mark ring \(this does not affect the global
3218mark ring\). Use \\[pop-global-mark] to jump to a mark popped off the global 3222mark ring\). Use \\[pop-global-mark] to jump to a mark popped off the global
3219mark ring \(see `pop-global-mark'\). 3223mark ring \(see `pop-global-mark'\).
@@ -3222,9 +3226,9 @@ If `set-mark-command-repeat-pop' is non-nil, repeating
3222the \\[set-mark-command] command with no prefix argument pops the next position 3226the \\[set-mark-command] command with no prefix argument pops the next position
3223off the local (or global) mark ring and jumps there. 3227off the local (or global) mark ring and jumps there.
3224 3228
3225With a double \\[universal-argument] prefix argument \(e.g., \\[universal-argument] \ 3229With \\[universal-argument] \\[universal-argument] as prefix
3226\\[universal-argument] \\[set-mark-command]\), unconditionally 3230argument, unconditionally set mark where point is, even if
3227set mark where point is, even if `set-mark-command-repeat-pop' is non-nil. 3231`set-mark-command-repeat-pop' is non-nil.
3228 3232
3229Novice Emacs Lisp programmers often try to use the mark for the wrong 3233Novice Emacs Lisp programmers often try to use the mark for the wrong
3230purposes. See the documentation of `set-mark' for more information." 3234purposes. See the documentation of `set-mark' for more information."