GNU bug report logs - #49116
28.0.50; Why `bound-and-true-p' is not working in lexical binding?

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Sat, 19 Jun 2021 11:43:02 UTC

Severity: normal

Found in version 28.0.50

Done: Phil Sainty <psainty <at> orcon.net.nz>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 49116 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, bugs <at> gnu.support
Subject: bug#49116: 28.0.50; Why `bound-and-true-p' is not working in lexical binding?
Date: Sat, 19 Jun 2021 15:21:47 +0200
Phil Sainty <psainty <at> orcon.net.nz> writes:

> It wouldn't hurt, and I see that `boundp' has such a note:
>
> "Note that if `lexical-binding' is in effect, this refers to the
> global value outside of any lexical scope."
>
> That same text could be used.

I've now copied over that text to the doc string of bound-and-true-p.

> If the confusion is over whether function arguments are dynamic
> or lexical then the doc change might not explain things, but it
> would probably hint at the source of the confusion.

Yup.

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




This bug report was last modified 3 years and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.