GNU bug report logs - #31734
26.1; byte-compile differs with cond eq 'default

Previous Next

Package: emacs;

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

Date: Wed, 6 Jun 2018 12:09:01 UTC

Severity: normal

Tags: patch

Merged with 28806, 31718

Found in version 26.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31734 in the body.
You can then email your comments to 31734 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31734; Package emacs. (Wed, 06 Jun 2018 12:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Héctor Enríquez Ramón <hector.e.r <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 06 Jun 2018 12:09:02 GMT) Full text and rfc822 format available.

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

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 1 (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 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31734; Package emacs. (Wed, 06 Jun 2018 12:20:02 GMT) Full text and rfc822 format available.

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

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
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 13:19:28 +0100
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

This is the same as bug#31718, right?
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31718

-- 
Basil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31734; Package emacs. (Wed, 06 Jun 2018 12:21:01 GMT) Full text and rfc822 format available.

Message #11 received at 31734 <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




Merged 31718 31734. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 06 Jun 2018 12:21:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31734; Package emacs. (Wed, 06 Jun 2018 13:11:01 GMT) Full text and rfc822 format available.

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

From: Héctor Enríquez Ramón <hector.e.r <at> gmail.com>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 31734 <at> debbugs.gnu.org
Subject: Re: bug#31734: 26.1; byte-compile differs with cond eq 'default
Date: Wed, 6 Jun 2018 15:10:02 +0200
[Message part 1 (text/plain, inline)]
Current bug causes the following:



https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28806



see ox-odt.el file:



...

    (cond

      ((eq fn 'default)

       (format org-odt-src-block-paragraph-format

                      background-color-val color-val))

      (t

       (format

               "

<style:style style:name=\"%s\" style:family=\"text\">

  <style:text-properties fo:color=\"%s\"/>

</style:style>" style-name color-val))))))

...



On Wed, Jun 6, 2018, 14:19 Basil L. Contovounesios <contovob <at> tcd.ie> wrote:

> 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
>
> This is the same as bug#31718, right?
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31718
>
> --
> Basil
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31734; Package emacs. (Wed, 06 Jun 2018 21:49:01 GMT) Full text and rfc822 format available.

Message #19 received at 31734 <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: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 31734 <at> debbugs.gnu.org
Subject: Re: bug#31734: 26.1; byte-compile differs with cond eq 'default
Date: Wed, 06 Jun 2018 17:48:31 -0400
merge 31734 28806
quit

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

> Current bug causes the following:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28806
>
>
> see ox-odt.el file:
>
> ...
>
>     (cond
>       ((eq fn 'default)
>        (format org-odt-src-block-paragraph-format
>                       background-color-val color-val))
>       (t
>        (format

Oh, nice catch, merging.




Merged 28806 31718 31734. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 06 Jun 2018 21:53:02 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 12 Jun 2018 22:23:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 16 Jul 2018 11:24:07 GMT) Full text and rfc822 format available.

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.