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.

Full log


View this message in rfc822 format

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: 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?




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.