GNU bug report logs - #30749
26.0.91; (cl-)case is confused when a nil atom is used instead of a keylist

Previous Next

Package: emacs;

Reported by: Alex Bennée <alex.bennee <at> linaro.org>

Date: Thu, 8 Mar 2018 10:29:02 UTC

Severity: minor

Tags: fixed

Found in version 26.0.91

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> gmail.com>
To: Alex Bennée <alex.bennee <at> linaro.org>
Cc: 30749 <at> debbugs.gnu.org
Subject: bug#30749: 26.0.91; (cl-)case is confused when a nil atom is used instead of a keylist
Date: Sat, 10 Mar 2018 17:57:58 -0500
tags 30749 fixed
close 30749 26.1
quit

Alex Bennée <alex.bennee <at> linaro.org> writes:

> Noam Postavsky <npostavs <at> gmail.com> writes:
>
>> 'nil is the same as (quote nil)
>
> Ahh so ends up as a list containing nil?

Yup.

>> -If no clause succeeds, cl-case returns nil.  A single atom may be used in
>> +If no clause succeeds, cl-case returns nil.  A single non-nil atom may be used in

> Works for me.

Pushed to emacs-26.

[1: e244fed5e0]: 2018-03-10 17:56:04 -0500
  Clarify that nil doesn't match itself as a cl-case clause (Bug#30749)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e244fed5e041c706dd10c60bd893634902f04aaa




This bug report was last modified 7 years and 71 days ago.

Previous Next


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