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

From: Thierry Volpiatto <[email-masked]>
Date: Tue, 19 Dec 2023 17:47:00 +0000

Thierry Volpiatto <[email-masked]> writes:

> Hello Stefan,
>
> Stefan Monnier <[email-masked]> 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