all messages for Emacs-related lists mirrored at yhetil.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.