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

From: Ihor Radchenko <[email-masked]>
Date: Thu, 21 Dec 2023 13:25:58 +0000

Stefan Monnier <[email-masked]> writes:

>> (let ((test/foo2 t))
>>   (default-value 'test/foo2)) ;; -> t ???
>
> Yup.

Hmm.. Then, what about

(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))) 
    (should (eq 'bar let-tests-buffer-local-var))
    (with-temp-buffer
      (should (eq 'bar (default-value 'let-tests-buffer-local-var)))
      (should (eq 'bar let-tests-buffer-local-var)))))

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>