comparison lisp/register.el @ 4931:ad035a2d8e26

(jump-to-register): Rename prefix arg to DELETE and invert its sense.
author Richard M. Stallman <rms@gnu.org>
date Mon, 08 Nov 1993 13:14:31 +0000
parents 3c5e001c9d60
children 5986d619b4ca
comparison
equal deleted inserted replaced
4930:04dee67f86cf 4931:ad035a2d8e26
72 Argument is a character, naming the register." 72 Argument is a character, naming the register."
73 (interactive "cFrame configuration to register: \nP") 73 (interactive "cFrame configuration to register: \nP")
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.
79 If the register contains a file name, find that file. 79 If 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'.)
81 If the register contains a window configuration (one frame) or a frame 81 If the register contains a window configuration (one frame) or a frame
82 configuration (all frames), restore that frame or all frames accordingly. 82 configuration (all frames), restore that frame or all frames accordingly.
83 First argument is a character, naming the register. 83 First argument is a character, naming the register.
84 Optional second arg non-nil (interactively, prefix argument) says not to 84 Optional second arg non-nil (interactively, prefix argument) says to
85 delete any existing frames when restoring a frame configuration." 85 delete 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)
95 (switch-to-buffer (marker-buffer val)) 96 (switch-to-buffer (marker-buffer val))
96 (goto-char val)) 97 (goto-char val))