From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49116: 28.0.50; Why `bound-and-true-p' is not working in lexical binding? Date: Sat, 19 Jun 2021 15:54:59 +0300 Message-ID: <83lf76vwt8.fsf@gnu.org> References: <861r8yozg5.fsf@protected.rcdrun.com> <3157c274e97fc9db7ceb345ba020f74b@webmail.orcon.net.nz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28659"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49116@debbugs.gnu.org, psainty@orcon.net.nz, bugs@gnu.support To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 19 14:55:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luaVE-0007Fg-AD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Jun 2021 14:55:12 +0200 Original-Received: from localhost ([::1]:51198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luaVC-0002dJ-6t for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Jun 2021 08:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luaV5-0002d2-44 for bug-gnu-emacs@gnu.org; Sat, 19 Jun 2021 08:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luaV4-0001s1-Sj for bug-gnu-emacs@gnu.org; Sat, 19 Jun 2021 08:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1luaV4-0001YP-Qs for bug-gnu-emacs@gnu.org; Sat, 19 Jun 2021 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jun 2021 12:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49116 X-GNU-PR-Package: emacs Original-Received: via spool by 49116-submit@debbugs.gnu.org id=B49116.16241073025967 (code B ref 49116); Sat, 19 Jun 2021 12:55:02 +0000 Original-Received: (at 49116) by debbugs.gnu.org; 19 Jun 2021 12:55:02 +0000 Original-Received: from localhost ([127.0.0.1]:58733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luaV3-0001Y2-Jf for submit@debbugs.gnu.org; Sat, 19 Jun 2021 08:55:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luaV1-0001Xo-13 for 49116@debbugs.gnu.org; Sat, 19 Jun 2021 08:55:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35620) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luaUu-0001oI-0u; Sat, 19 Jun 2021 08:54:52 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3585 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luaUt-00087S-KL; Sat, 19 Jun 2021 08:54:51 -0400 In-Reply-To: <3157c274e97fc9db7ceb345ba020f74b@webmail.orcon.net.nz> (message from Phil Sainty on Sun, 20 Jun 2021 00:49:14 +1200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208724 Archived-At: > Date: Sun, 20 Jun 2021 00:49:14 +1200 > From: Phil Sainty > Cc: 49116-done@debbugs.gnu.org > > (bound-and-true-p VAR) is syntactic sugar for (and (boundp 'VAR) VAR) > which means that it works only for dynamic variables (i.e. variables > stored in the value slot of a symbol). > > Under lexical binding, function arguments are lexical variables, which > means they are not stored in the symbol of that name, and hence cannot > be detected with `boundp'. Should this be mentioned in the doc string of bound-and-true-p?