bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#66394: 29.1; Make register-read-with-preview more useful


From: Thierry Volpiatto
Subject: bug#66394: 29.1; Make register-read-with-preview more useful
Date: Tue, 19 Dec 2023 17:47:00 +0000

Thierry Volpiatto <thievol@posteo.net> writes:

> Hello Stefan,
>
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> It should be possible to use post-command-hook, I didn't use it because
>>> it makes harder the communication between the minibuffer and the preview
>>> buffer.
>>
>> The patch below seems to work for my extremely limited testing.

>     (cl-defmethod register-command-info ((_command (eql increment-register)))
>       (make-register-preview-info
>        :types '(all)
>        :msg "Increment to register `%s'"
>        :act 'set
>        :smatch t
>        :noconfirm t))

Copied the wrong one, the test was with :noconfirm == nil:

     (cl-defmethod register-command-info ((_command (eql increment-register)))
       (make-register-preview-info
        :types '(all)
        :msg "Increment to register `%s'"
        :act 'set
        :smatch t
        :noconfirm nil))

-- 
Thierry

Attachment: signature.asc
Description: PGP signature


reply via email to

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