Subject: Re: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers

From: Gerd Möllmann <[email-masked]>
Date: Mon, 01 Jan 2024 20:39:13 +0100

Ihor Radchenko <[email-masked]> writes:

> Gerd Möllmann <[email-masked]> writes:
>
>>> (defvar-local let-tests-buffer-local-var 'value)
>>> (with-temp-buffer
>>>   (setq-local let-tests-buffer-local-var 'baz)
>>>   (let ((let-tests-buffer-local-var 'bar))
>>>     ;; This is failing.
>>>     (should (eq 'bar (default-value 'let-tests-buffer-local-var)))
>>
>> C-h f default-value explains this:
>>
>>   Return SYMBOL’s default value.
>>   This is the value that is seen in buffers that do not have their own values
>>   for this variable.
>
> Are you saying that `let' never changes `default-value' output?

Not really. I tried to explain why default-value, in this case, returns
what it returns.

> Unfortunately, no.

Maybe you are seeing something like bug#65209? Or the fix done by Stefan
Monnier in the course of that bug? (See the mails under the bug.)