GNU bug report logs - #12371
24.2.50; macroexpand-all reporting warnings to *Compile-Log*

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Thu, 6 Sep 2012 13:59:01 UTC

Severity: normal

Merged with 12473

Found in version 24.2.50

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

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: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12371: closed (24.2.50; macroexpand-all reporting warnings to
 *Compile-Log*)
Date: Thu, 20 Sep 2012 14:18:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 20 Sep 2012 10:16:12 -0400
with message-id <jwv7grozsrh.fsf-monnier+emacs <at> gnu.org>
and subject line Re: bug#12371: macroexp--funcall-if-compiled broke bootstrap for me
has caused the debbugs.gnu.org bug report #12371,
regarding 24.2.50; macroexpand-all reporting warnings to *Compile-Log*
to be marked as done.

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


-- 
12371: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12371
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; macroexpand-all reporting warnings to *Compile-Log*
Date: Thu,  6 Sep 2012 14:58:22 +0100 (BST)
emacs -q
M-: (macroexpand-all '(mapc '(lambda ()) nil)) RET

Debugger entered--Lisp error: (void-function byte-compile-log-warning)

emacs -q
M-x load-library RET bytecomp RET
M-: (macroexpand-all '(mapc '(lambda ()) nil)) RET

A *Compile-Log* buffer appears, with the following content

    Warning: (lambda nil ...) quoted with ' rather than with #'

This is utterly confusing.  There is no compilation going on.  (Another
user experience regarding this issue can be found in bug report 12362 -
<87392vtj24.fsf <at> jidanni.org>.)

macroexp--expand-all, which is the originator of the warning, calls
byte-compile-log-warning without consulting byte-compile-warnings.

I think the warning message should include a hint that it was generated
by macroexpanding code and byte-compile-warnings should be consulted as
well.

GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2012-09-06.

        Christopher


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Troels Nielsen <bn.troels <at> gmail.com>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 12371-done <at> debbugs.gnu.org
Subject: Re: bug#12371: macroexp--funcall-if-compiled broke bootstrap for me
Date: Thu, 20 Sep 2012 10:16:12 -0400
>> The first one I think just is a line gone missing.
> No, I removed that line on purpose (an autoload entry shouldn't have
> a nil in position 1, so it should be a redundant test).

That was a brain malfunction, sorry.  Should be fixed now.

>> The next chunk extracts (car form) before it's to late, as form goes
>> about being changed before the closure is being called.
> Duh, sorry 'bout that.  Please install your patch,

I actually installed a different patch instead, which does what your did
plus removes a FIXME.


        Stefan


This bug report was last modified 12 years and 161 days ago.

Previous Next


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