unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12371: 24.2.50; macroexpand-all reporting warnings to *Compile-Log*
@ 2012-09-06 13:58 Christopher Schmidt
  2012-09-06 16:46 ` Christopher Schmidt
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Christopher Schmidt @ 2012-09-06 13:58 UTC (permalink / raw)
  To: 12371

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@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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-09-20 14:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 13:58 bug#12371: 24.2.50; macroexpand-all reporting warnings to *Compile-Log* Christopher Schmidt
2012-09-06 16:46 ` Christopher Schmidt
2012-09-19 20:01 ` Stefan Monnier
2012-09-20  1:00 ` bug#12371: macroexp--funcall-if-compiled broke bootstrap for me Paul Eggert
2012-09-20  3:30   ` Stefan Monnier
2012-09-20  4:56     ` Paul Eggert
2012-09-20  5:11       ` Paul Eggert
2012-09-20  8:21         ` Troels Nielsen
2012-09-20 12:43           ` Stefan Monnier
2012-09-20 14:16             ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).