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: Daniel Mendler
Subject: bug#48738: [PATCH] Optimized `describe-variable' predicate
Date: Mon, 31 May 2021 07:19:27 +0200

On 5/31/21 7:13 AM, Lars Ingebrigtsen wrote:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
> 
>> 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'.
> 
> local-variable-p and local-variable-if-set-p, but neither really do what
> you want in this case.

Yes, I am aware of those. As you say, they don't do what we want here.
The question is which name convention to use here. I think having a
`buffer-local-boundp` makes sense.





reply via email to

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