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

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

[Emacs-bug-tracker] bug#8518: closed (24.0.50; 'byte-compile-error-on-wa


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#8518: closed (24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning)
Date: Tue, 19 Apr 2011 05:41:02 +0000

Your message dated Tue, 19 Apr 2011 07:39:50 +0200
with message-id <address@hidden>
and subject line Re: bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect 
on 'defvar ignored because X is let-bound' warning
has caused the GNU bug report #8518,
regarding 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored 
because X is let-bound' warning
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
8518: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8518
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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



--- End Message ---
--- Begin Message --- Subject: Re: bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning Date: Tue, 19 Apr 2011 07:39:50 +0200 User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)
Glenn Morris writes:
> The warning does not come from the compiler, it comes from when the
> code is evaluated. You get the same result with:
>
> emacs -batch -L . -l ./test.el

Oh, you're right, of course. Sorry for the noise.

-David


--- End Message ---

reply via email to

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