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


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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Héctor Enríquez Ramón <hector.e.r <at> gmail.com>
Cc: 31734 <at> debbugs.gnu.org
Subject: Re: bug#31734: 26.1; byte-compile differs with cond eq 'default
Date: Wed, 06 Jun 2018 08:19:54 -0400
merge 31734 31718
quit

Héctor Enríquez Ramón <hector.e.r <at> gmail.com> writes:

> 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

Please try the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31718#14




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.