GNU bug report logs - #21701
25.0.50; ert explainer for equal can't handle negative numbers (work in 24.5)

Previous Next

Package: emacs;

Reported by: Anders Lindgren <andlind <at> gmail.com>

Date: Sun, 18 Oct 2015 08:58:01 UTC

Severity: normal

Found in version 25.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Anders Lindgren <andlind <at> gmail.com>
To: 21701 <at> debbugs.gnu.org
Subject: cl-typecase broken (was 25.0.50; ert explainer for equal can't handle
 negative numbers)
Date: Fri, 4 Dec 2015 10:41:59 +0100
[Message part 1 (text/plain, inline)]
I just realised that the underlying problem is a change to `cl-typecase'.
It treats -50 as a character.

(cl-typecase -50
  (character "A character")
  (fixnum "A fixnum")
  (t "Something else"))

Emacs 25 returns "A character" and emacs 24 "A fixnum".

    -- Anders
[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 167 days ago.

Previous Next


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