unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* byte-compile-maybe-guarded
@ 2008-03-01 20:07 Glenn Morris
  2008-03-02  1:00 ` byte-compile-maybe-guarded Dan Nicolaescu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Glenn Morris @ 2008-03-01 20:07 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel


Dan,


FYI I've restored the code in byte-compile-maybe-guarded that you
commented out 2007-11-10. Without this code, a false warning is
produced in the following case:

foo.el:
(defsubst foo ()
  (if (featurep 'xemacs) (setq foo t)))   ; foo is a free variable
(provide 'foo)

bar.el:
(require 'foo)
(foo)


emacs -Q -batch --eval "(add-to-list 'load-path default-directory)" \
   -f batch-byte-compile bar.el

In toplevel form:
bar.el:2:2:Warning: assignment to free variable `foo'




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

end of thread, other threads:[~2008-03-03  2:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-01 20:07 byte-compile-maybe-guarded Glenn Morris
2008-03-02  1:00 ` byte-compile-maybe-guarded Dan Nicolaescu
2008-03-02  5:50 ` byte-compile-maybe-guarded Stefan Monnier
2008-03-03  2:01   ` byte-compile-maybe-guarded Glenn Morris
2008-03-02 22:38 ` byte-compile-maybe-guarded 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).