From: Dan Nicolaescu <dann@ics.uci.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: byte-compile-maybe-guarded
Date: Sat, 01 Mar 2008 17:00:43 -0800 [thread overview]
Message-ID: <200803020100.m2210hmL011065@sallyv1.ics.uci.edu> (raw)
In-Reply-To: w3hcfqtdi3.fsf@fencepost.gnu.org
Glenn Morris <rgm@gnu.org> writes:
> 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:
Although restoring that code fixes the warning that you showed, is it
the right thing to do?
> 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
If the defsubst in foo.el to is:
(defsubst foo ()
(if (and t (featurep 'xemacs)) (setq foo t))) ; foo is a free variable
the warning is still produced even after your change...
next prev parent reply other threads:[~2008-03-02 1:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-01 20:07 byte-compile-maybe-guarded Glenn Morris
2008-03-02 1:00 ` Dan Nicolaescu [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200803020100.m2210hmL011065@sallyv1.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=rgm@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 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.