]> code.delx.au - gnu-emacs/blobdiff - lisp/vc/emerge.el
Be more consistent in using register-read-with-preview to read registers
[gnu-emacs] / lisp / vc / emerge.el
index af13665fc2ad9e358c3c0ffbb93fdee89be8b657..0cf4484aac157ffd60ba2a6be685dd49260007b3 100644 (file)
@@ -2516,8 +2516,12 @@ for how the template is interpreted.
 Refuses to function if this difference has been edited, i.e., if it is
 neither the A nor the B variant.
 An argument forces the variant to be selected even if the difference has
-been edited."
-  (interactive "cRegister containing template: \nP")
+been edited.
+
+Interactively, reads the register using `register-read-with-preview'."
+  (interactive (list
+               (register-read-with-preview "Register containing template: ")
+               current-prefix-arg))
   (let ((template (get-register char)))
     (if (not (stringp template))
        (error "Register does not contain text"))