From: David Engster <deng@randomsample.de>
To: 8518@debbugs.gnu.org
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 [thread overview]
Message-ID: <m2y63752xr.fsf@engster.org> (raw)
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
next reply other threads:[~2011-04-18 9:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 9:22 David Engster [this message]
2011-04-18 17:37 ` bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning Glenn Morris
2011-04-19 5:39 ` David Engster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2y63752xr.fsf@engster.org \
--to=deng@randomsample.de \
--cc=8518@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).