GNU bug report logs - #31718
26.1; Strange behavior of `cond'

Previous Next

Package: emacs;

Reported by: Ikumi Keita <ikumi <at> ikumi.que.jp>

Date: Tue, 5 Jun 2018 06:27:02 UTC

Severity: normal

Tags: patch

Merged with 28806, 31734

Found in version 26.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#31734: closed (26.1; byte-compile differs with cond eq 'default)
Date: Sat, 16 Jun 2018 16:46:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 16 Jun 2018 09:45:47 -0700
with message-id <4070ba02-885e-d8b3-a281-d0262e26774c <at> cs.ucla.edu>
and subject line Re: bug#31718: 26.1; Strange behavior of `cond'
has caused the debbugs.gnu.org bug report #31718,
regarding 26.1; byte-compile differs with cond eq 'default
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
31718: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31718
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Héctor Enríquez Ramón <hector.e.r <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; byte-compile differs with cond eq 'default
Date: Wed, 6 Jun 2018 12:38:51 +0200
[Message part 3 (text/plain, inline)]
Hi.

The code below shows opposite behavior byte-compiled:

(setq variable 0)
(cond
 ((eq variable 'default)
  (message "equal"))
 (t
  (message "not equal")))

Not byte-compiled output: not equal
Byte-compiled output: equal

Thank you very much.

Best regards. Hector
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: robert-emacs <at> cochranmail.com, 31718-done <at> debbugs.gnu.org, schwab <at> suse.de,
 pierre.techoueyres <at> free.fr, npostavs <at> gmail.com, vibhavp <at> gmail.com,
 contovob <at> tcd.ie, jaygkamat <at> gmail.com, ikumi <at> ikumi.que.jp, hector.e.r <at> gmail.com
Subject: Re: bug#31718: 26.1; Strange behavior of `cond'
Date: Sat, 16 Jun 2018 09:45:47 -0700
Eli Zaretskii wrote:
> If it's a regression, then let's backport, indeed.

OK, done, and closing the bug report.


This bug report was last modified 6 years and 342 days ago.

Previous Next


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