emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please, Restore Previous Behavior for jump-to-register


From: Thierry Volpiatto
Subject: Re: Please, Restore Previous Behavior for jump-to-register
Date: Sun, 10 Dec 2023 17:46:57 +0000

Thierry Volpiatto <thievol@posteo.net> writes:

> Thierry Volpiatto <thievol@posteo.net> writes:

> Note also that in addition to register-use-preview setting, one can use
>
>     (cl-defmethod register-preview-command-info ((_command (eql 
> copy-to-register)))
>       (make-register-preview-info
>        :types '(string number)
>        :msg "Set register `%s'"))
>
> to have the wanted behavior (no RET when overwriting) for
> copy-to-register command.

Sorry, it is register-command-info, not register-preview-command-info.

Even better the customization can be make only when for example
register-use-preview is nil with:

    (cl-defmethod register-command-info ((_command (eql copy-to-register))
                                         &context (register-use-preview (eql 
nil)))
      (make-register-preview-info
       :types '(string number)
       :msg "Set register `%s'"))

-- 
Thierry

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]