aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles A. Roelli2017-09-28 20:17:35 +0200
committerCharles A. Roelli2017-09-28 20:17:35 +0200
commit122ffe521b2b34caa6a1f2583878c569ea395cb3 (patch)
treee8f9ba53ad9fb4a02efaeb08f39ed3186ebe2c45
parent551594e951642a043862dabb987facfc0253f7d3 (diff)
downloademacs-122ffe521b2b34caa6a1f2583878c569ea395cb3.tar.gz
emacs-122ffe521b2b34caa6a1f2583878c569ea395cb3.zip
Fix 'point-to-register' prompt with prefix arg
* lisp/register.el (point-to-register): Fix prompt when a prefix argument is given.
-rw-r--r--lisp/register.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/register.el b/lisp/register.el
index 913380763c6..23eefd08b88 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -182,8 +182,11 @@ Use \\[jump-to-register] to go to that location or restore that configuration.
182Argument is a character, naming the register. 182Argument is a character, naming the register.
183 183
184Interactively, reads the register using `register-read-with-preview'." 184Interactively, reads the register using `register-read-with-preview'."
185 (interactive (list (register-read-with-preview "Point to register: ") 185 (interactive (list (register-read-with-preview
186 current-prefix-arg)) 186 (if current-prefix-arg
187 "Frame configuration to register: "
188 "Point to register: "))
189 current-prefix-arg))
187 ;; Turn the marker into a file-ref if the buffer is killed. 190 ;; Turn the marker into a file-ref if the buffer is killed.
188 (add-hook 'kill-buffer-hook 'register-swap-out nil t) 191 (add-hook 'kill-buffer-hook 'register-swap-out nil t)
189 (set-register register 192 (set-register register