bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ign


From: David Engster
Subject: bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning
Date: Mon, 18 Apr 2011 11:22:40 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]