From: Dan Nicolaescu <dann@ics.uci.edu>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: strange byte compiler behavior
Date: Wed, 02 Jan 2008 14:13:38 -0800 [thread overview]
Message-ID: <200801022213.m02MDh9u014810@oogie-boogie.ics.uci.edu> (raw)
In-Reply-To: <477C06F7.4020208@gmx.at> (martin rudalics's message of "Wed, 02 Jan 2008 22:49:43 +0100")
martin rudalics <rudalics@gmx.at> writes:
> > which runs: -batch --no-site-file --multibyte --eval "(batch-byte-recompile-directory 0)"
> > does NOT warn
>
> What happens when you comment out the disjunct
>
> (memq var byte-compile-free-references)
>
> from `byte-compile-variable-ref'? Alternatively what is the value of
> that variable when you do not get the warning?
I can't try this right now, but why would it be relevant.
Because (boundp var) is true, then (or (boundp var) BLAH) is true and
BLAH does not get executed after that.
> Also, could you try the same with just the file in question in the
> directory you recompile?
I tried that before, no difference.
> > (message "var %s boundp %s" var (boundp var))
> > to `byte-compile-variable-ref' shows that `file' is bound for the function
> > in question. Which would explain the results.
> > Any idea what causes `file' to be bound? (Assuming that boundp is the
> > correct test in that context...)
>
> Since `byte-compile-variable-ref' has
>
> (or (boundp var)
>
> it would be interesting _where_ in `byte-compile-variable-ref' you
> inserted that.
At the beginning of the function, but as I explained above, it is not
relevant.
next prev parent reply other threads:[~2008-01-02 22:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-31 20:55 strange byte compiler behavior Dan Nicolaescu
2007-12-31 21:37 ` martin rudalics
2007-12-31 22:11 ` Dan Nicolaescu
2007-12-31 22:30 ` martin rudalics
2007-12-31 22:42 ` Dan Nicolaescu
2008-01-01 10:33 ` martin rudalics
2008-01-02 19:48 ` Dan Nicolaescu
2008-01-02 21:49 ` martin rudalics
2008-01-02 22:13 ` Dan Nicolaescu [this message]
2008-01-02 23:17 ` Dan Nicolaescu
2008-01-02 23:24 ` David Kastrup
2008-01-04 5:27 ` Richard Stallman
2008-01-04 6:10 ` Stefan Monnier
2008-01-05 14:29 ` Richard Stallman
2008-01-06 2:00 ` Stefan Monnier
2008-01-06 16:34 ` martin rudalics
2008-01-06 18:09 ` Richard Stallman
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=200801022213.m02MDh9u014810@oogie-boogie.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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.