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

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

bug#48738: [PATCH] Optimized `describe-variable' predicate


From: Lars Ingebrigtsen
Subject: bug#48738: [PATCH] Optimized `describe-variable' predicate
Date: Mon, 31 May 2021 07:06:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Daniel Mendler <mail@daniel-mendler.de> writes:

> Yes, when I find such case I will report them or provide a patch.
> However it really matters in very few cases. Here the predicate is
> called 10k+ times when generating all completions.

Yup.

I think I'll just go ahead and add `buffer-local-boundp' now -- it'll
perhaps encourage further usage of `buffer-local-value'.  I remember
doing things like

(with-current-buffer foo
  (and (boundp 'zot) zot))

because there's no `buffer-local-boundp'.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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