aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-08 13:14:31 +0000
committerRichard M. Stallman1993-11-08 13:14:31 +0000
commit1542ad37679bfea834b7ac7a02a8ac92ef12cd67 (patch)
tree56d61329581bc8b13318450e250812870f24a7fb
parent5da841d2d5ef64f5354c71edaa908b360aa8b81e (diff)
downloademacs-1542ad37679bfea834b7ac7a02a8ac92ef12cd67.tar.gz
emacs-1542ad37679bfea834b7ac7a02a8ac92ef12cd67.zip
(jump-to-register): Rename prefix arg to DELETE and invert its sense.
-rw-r--r--lisp/register.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/register.el b/lisp/register.el
index 4a4c29ac98e..cf8dafae0d9 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -74,21 +74,22 @@ Argument is a character, naming the register."
74 (set-register char (current-frame-configuration))) 74 (set-register char (current-frame-configuration)))
75 75
76(defalias 'register-to-point 'jump-to-register) 76(defalias 'register-to-point 'jump-to-register)
77(defun jump-to-register (char &optional nodelete) 77(defun jump-to-register (char &optional delete)
78 "Move point to location stored in a register. 78 "Move point to location stored in a register.
79If the register contains a file name, find that file. 79If the register contains a file name, find that file.
80 \(To put a file name in a register, you must use `set-register'.) 80 \(To put a file name in a register, you must use `set-register'.)
81If the register contains a window configuration (one frame) or a frame 81If the register contains a window configuration (one frame) or a frame
82configuration (all frames), restore that frame or all frames accordingly. 82configuration (all frames), restore that frame or all frames accordingly.
83First argument is a character, naming the register. 83First argument is a character, naming the register.
84Optional second arg non-nil (interactively, prefix argument) says not to 84Optional second arg non-nil (interactively, prefix argument) says to
85delete any existing frames when restoring a frame configuration." 85delete any existing frames that the frame configuration doesn't mention.
86\(Otherwise, these frames are made invisible.)"
86 (interactive "cJump to register: \nP") 87 (interactive "cJump to register: \nP")
87 (let ((val (get-register char))) 88 (let ((val (get-register char)))
88 (cond 89 (cond
89 ((and (fboundp 'frame-configuration-p) 90 ((and (fboundp 'frame-configuration-p)
90 (frame-configuration-p val)) 91 (frame-configuration-p val))
91 (set-frame-configuration val nodelete)) 92 (set-frame-configuration val (not delete)))
92 ((window-configuration-p val) 93 ((window-configuration-p val)
93 (set-window-configuration val)) 94 (set-window-configuration val))
94 ((markerp val) 95 ((markerp val)