]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'point-to-register' prompt with prefix arg
authorCharles A. Roelli <charles@aurox.ch>
Thu, 28 Sep 2017 18:17:35 +0000 (20:17 +0200)
committerCharles A. Roelli <charles@aurox.ch>
Thu, 28 Sep 2017 18:17:35 +0000 (20:17 +0200)
* lisp/register.el (point-to-register): Fix prompt when a prefix
argument is given.

lisp/register.el

index 913380763c63986e419c471d8f756b61351dc565..23eefd08b884bbae7d8e29f7cfcb0c2cc04c72ea 100644 (file)
@@ -182,8 +182,11 @@ Use \\[jump-to-register] to go to that location or restore that configuration.
 Argument is a character, naming the register.
 
 Interactively, reads the register using `register-read-with-preview'."
-  (interactive (list (register-read-with-preview "Point to register: ")
-                    current-prefix-arg))
+  (interactive (list (register-read-with-preview
+                      (if current-prefix-arg
+                          "Frame configuration to register: "
+                        "Point to register: "))
+                     current-prefix-arg))
   ;; Turn the marker into a file-ref if the buffer is killed.
   (add-hook 'kill-buffer-hook 'register-swap-out nil t)
   (set-register register