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#67991: 30.0.50; boundp always returns nil in format-mode-line with let* after 0fde935 Date: Sat, 23 Dec 2023 18:42:26 +0200 Message-ID: <83msu0dg5p.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3623"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, monnier@iro.umontreal.ca, 67991@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 23 17:43:25 2023 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 1rH55w-0000m1-8E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 17:43:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rH55X-0002nb-6z; Sat, 23 Dec 2023 11:42:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rH55V-0002nH-0F for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:42:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rH55U-0006jO-Ox for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:42:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rH55Z-0003yX-Qz for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Dec 2023 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67991 X-GNU-PR-Package: emacs Original-Received: via spool by 67991-submit@debbugs.gnu.org id=B67991.170334976915263 (code B ref 67991); Sat, 23 Dec 2023 16:43:01 +0000 Original-Received: (at 67991) by debbugs.gnu.org; 23 Dec 2023 16:42:49 +0000 Original-Received: from localhost ([127.0.0.1]:51132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rH55M-0003y5-Vc for submit@debbugs.gnu.org; Sat, 23 Dec 2023 11:42:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rH55L-0003xt-9A for 67991@debbugs.gnu.org; Sat, 23 Dec 2023 11:42:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rH559-0006hO-UJ; Sat, 23 Dec 2023 11:42:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=TTd05zakqAz18C2cLSIjzuXe+RvMExaqVl06mBrvrCM=; b=GiL2H8MQ2uHhCOqou+L1 0G9BNPZkZ5064R74YSuZkgXmXH0j+i7ZgqsSTX7WhMH7zIS9U8Hnx6Xmbz7fIJKZF3kYOc+ofD4Kh HMQ3W9HfQKl0G4NY8MxLt05kKg8fMjeVe2MIID3nBxgRnoPcjpjhZOR7FmIqOShtP1B3mpiuXs387 9BYJKDDtYa5dQXTZE/o0EtD4y1XxhVGTtKMnATC9Rx/EVTZYh5m+u3Eoj1uK5NmyzErWweuBjhQ9c HUhpx7/mr5N4BcuA2UtE5E7PHqenM3w2xHL9gNEmuz/7tJLOkV5uU6PyfCJyfttp/J2mwNjZb+H8w ThSyAH3fLZ2sMg==; In-Reply-To: (message from Aaron Jensen on Sat, 23 Dec 2023 10:52:22 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276754 Archived-At: > Cc: monnier@iro.umontreal.ca, 67991@debbugs.gnu.org > From: Aaron Jensen > Date: Sat, 23 Dec 2023 10:52:22 -0500 > > On Sat, Dec 23, 2023 at 10:21 AM Gerd Möllmann wrote: > > > > Aaron Jensen writes: > > > > > After commits: > > > > > > 0fde935b66e43e4d7ec137ba6195de993168587a > > > a63b206fbde2ead91f1053d80a275f8850e5ffce > > > > > > boundp returns nil here, rather than t, like it used to: > > > > > > (format-mode-line > > > '(:eval (let* ((some-var "some-value") > > > (_ (message "Bound: %S" (boundp 'some-var)))) > > > (message "Var: %S, Bound: %S" some-var (boundp 'some-var))))) > > > > > > This has an impact on a particular package I use for my modeline, which > > > can be worked around if this behavior is expected. It seemed a > > > significant chagne, so I wanted to report it, in case it was not expected. > > > > I don't know why that would have changed things with Stefan's commit, > > but are your sure that some-var is declared special (has a defvar, for > > instance)? When it is, boundp returns t here. > > It's not in the package in question. But even if I defvar w/o giving > it a value, it does not return t: > > (defvar some-var) > > (let* ((some-var "some-value") > (_ (message "Bound: %S" (boundp 'some-var)))) > (message "Var: %S, Bound: %S" some-var (boundp 'some-var))) > > (format-mode-line > '(:eval (let* ((some-var "some-value") > (_ (message "Bound: %S" (boundp 'some-var)))) > (message "Var: %S, Bound: %S" some-var (boundp 'some-var))))) > > The first returns t, the second does not. This one will return t: (format-mode-line '(:eval (progn (defvar some-var) (let* ((some-var "some-value") (_ (message "Bound: %S" (boundp 'some-var)))) (message "Var: %S, Bound: %S" some-var (boundp 'some-var)))))) > As to your question, Eli, I don't know. If it shouldn't return nil > then I can report that downstream and they can fix it there. Let's wait for Stefan to chime in, he made the change you blamed.