GNU bug report logs - #74215
(when 1) evaluates to 1 on latest master

Previous Next

Package: emacs;

Reported by: "Brennan Vincent" <brennan <at> umanwizard.com>

Date: Tue, 5 Nov 2024 18:01:01 UTC

Severity: normal

Done: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74215 in the body.
You can then email your comments to 74215 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#74215; Package emacs. (Tue, 05 Nov 2024 18:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Brennan Vincent" <brennan <at> umanwizard.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Nov 2024 18:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Brennan Vincent" <brennan <at> umanwizard.com>
To: bug-gnu-emacs <at> gnu.org
Subject: (when 1) evaluates to 1 on latest master
Date: Tue, 05 Nov 2024 12:59:43 -0500
(when 1) evaluates to 1, rather than nil, on latest master. This is
contrary to the documentation, which reads:

When COND yields non-nil, eval BODY forms sequentially and return
value of last one, or nil if there are none.

According to some discussion on IRC (thanks thuna`), this seems to have
been introduced here:

https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=7c63b632e4e





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#74215; Package emacs. (Tue, 05 Nov 2024 19:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 74215 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Brennan Vincent" <brennan <at> umanwizard.com>,
 Mattias Engdegård <mattiase <at> acm.org>
Cc: 74215 <at> debbugs.gnu.org
Subject: Re: bug#74215: (when 1) evaluates to 1 on latest master
Date: Tue, 05 Nov 2024 21:12:20 +0200
> From: "Brennan Vincent" <brennan <at> umanwizard.com>
> Date: Tue, 05 Nov 2024 12:59:43 -0500
> 
> (when 1) evaluates to 1, rather than nil, on latest master. This is
> contrary to the documentation, which reads:
> 
> When COND yields non-nil, eval BODY forms sequentially and return
> value of last one, or nil if there are none.
> 
> According to some discussion on IRC (thanks thuna`), this seems to have
> been introduced here:
> 
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=7c63b632e4e

Thanks.  Emacs 30 also shows this behavior, but Emacs 29 doesn't.

Mattias, could you please take a look?




Reply sent to Mattias Engdegård <mattias.engdegard <at> gmail.com>:
You have taken responsibility. (Wed, 06 Nov 2024 12:51:02 GMT) Full text and rfc822 format available.

Notification sent to "Brennan Vincent" <brennan <at> umanwizard.com>:
bug acknowledged by developer. (Wed, 06 Nov 2024 12:51:02 GMT) Full text and rfc822 format available.

Message #13 received at 74215-done <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Brennan Vincent <brennan <at> umanwizard.com>, 74215-done <at> debbugs.gnu.org
Subject: Re: bug#74215: (when 1) evaluates to 1 on latest master
Date: Wed, 6 Nov 2024 13:49:12 +0100
>> (when 1) evaluates to 1, rather than nil

Very sorry about that; now fixed. Thank you for reporting it!

(I haven't had much Emacs time lately and am clearly building up a backlog but this was clearly my fault and quickly remedied.)





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Dec 2024 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 192 days ago.

Previous Next


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