* bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning
@ 2011-04-18 9:22 David Engster
2011-04-18 17:37 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: David Engster @ 2011-04-18 9:22 UTC (permalink / raw)
To: 8518
Here's the recipe:
* Create files
--- test.el ----
(eval-when-compile
(let ((test-something nil))
(require 'test2)))
----------------
--- test2.el ----
(defvar test-something t)
(provide 'test2)
-----------------
* Now byte-compile the first file with
emacs --batch -L . --eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile test.el
Output will be:
Warning: defvar ignored because test-something is let-bound
Wrote /home/user/test.elc
with an exit code 0.
* Expected behavior: batch-byte-compile should return the warning as
an error with exit code >0.
This was tested with Emacs bzr revno. 103887.
-David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-19 5:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 9:22 bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning David Engster
2011-04-18 17:37 ` Glenn Morris
2011-04-19 5:39 ` David Engster
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).