Subject: Re: bug#76739: 31.0.50; Register previews cannot be disabled

From: Thierry Volpiatto <[email-masked]>
Date: Tue, 04 Mar 2025 17:46:59 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Rudolf Adamkovič <[email-masked]>
>> Date: Tue, 04 Mar 2025 12:36:08 +0100
>> 
>> 
>> REPRODUCTION:
>> 
>>   1. start `emacs -Q'
>>   2. eval `(setq register-use-preview 'never)'
>>   3. type "foo", highlight it, and type `C-x r s a'
>>   4. type "bar", highlight it, and type `C-x r s'
>>   5. wait one second
>> 
>> EXPECTED:
>> 
>>   no preview shows
>> 
>> ACTUAL:
>> 
>>   preview shows
>> 
>> NOTES:
>> 
>>   The preview shows on `C-x r i' as well.  Is the `register-use-preview'
>>   variable supposed to control its preview as well?  If so, then the
>>   variable should not be documented as
>> 
>>     "Whether to show register preview when manipulating registers."
>>                                            ^^^^^^^^^^^^
>>   instead of
>> 
>>     "Whether to show register preview when modifying registers."
>> 
>>   because `C-x r i' does not modify any registers.
>
> Thierry, could you please look into this?

Yes, I already replied, the problem is if one set this variable with
setq, the defcustom has a :set function.
So from emacs -Q here:

(customize-set-variable 'register-use-preview 'never)

Then do 3) and 4) from the recipe above.

No preview, as expected.

-- 
Thierry