Subject: bug#74215: closed (Re: bug#74215: (when 1) evaluates to 1 on latest master)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 06 Nov 2024 12:51:02 +0000

Your bug report

#74215: (when 1) evaluates to 1 on latest master

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
74215: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74215
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#74215: (when 1) evaluates to 1 on latest master
From: Mattias Engdegård <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: Brennan Vincent <[email-masked]>, [email-masked]
Date: Wed, 6 Nov 2024 13:49:12 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

>> (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.)

Subject: (when 1) evaluates to 1 on latest master
From: "Brennan Vincent" <[email-masked]>
To: [email-masked]
Date: Tue, 05 Nov 2024 12:59:43 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

(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