From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: d.love@dl.ac.uk, monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org
Subject: Re: bytecomp warning for CL functions
Date: Fri, 19 Jul 2002 13:49:47 -0400 [thread overview]
Message-ID: <200207191749.g6JHnlw16800@rum.cs.yale.edu> (raw)
In-Reply-To: 200207191654.g6JGsH326961@aztec.santafe.edu
> As far as I know, they're different things. My code was specifically
> testing CL stuff, even if it would be present at runtime, whereas
> Stefan's would check for problems with functions not being available
> at runtime generally.
>
> The way I changed your code, it warns about run-time calls to CL
> functions from a file that doesn't necessarily load CL at run time.
> Stefan, in your code, is the criterion the same: call to a function
> in file X, from another file Y that doesn't necessarily load X at run time?
Mostly, but the devil is in the details.
It complaints when:
the file calls F and F is known to exist during compilation but
not at runtime (because it was made available through (eval-when-compile
(require 'foo))).
But it doesn't work so well if `bar' gets loaded by foo.elc
(and is thus marked as "not available at runtime") but is later
on required explicitly. I don't check this case.
Also, if `foo' was already loaded when the compilation started,
the results depend on how it was loaded, so it doesn't work
too well with recompile-directory unless the file is either always
required directly or always required through `eval-when-compile'.
Stefan
next prev parent reply other threads:[~2002-07-19 17:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-24 22:13 bytecomp warning for CL functions Dave Love
2002-06-24 23:04 ` Miles Bader
2002-06-25 23:32 ` Richard Stallman
2002-06-26 14:10 ` Stefan Monnier
2002-07-01 18:11 ` Dave Love
2002-07-02 19:45 ` Richard Stallman
2002-07-03 7:21 ` Juanma Barranquero
2002-07-08 18:20 ` Richard Stallman
2002-07-18 18:48 ` Dave Love
2002-07-19 6:09 ` Juanma Barranquero
2002-07-19 16:54 ` Richard Stallman
2002-07-08 18:19 ` Richard Stallman
2002-07-18 18:53 ` Dave Love
2002-07-19 16:54 ` Richard Stallman
2002-07-19 17:49 ` Stefan Monnier [this message]
2002-07-20 0:35 ` Richard Stallman
2002-07-29 22:46 ` Dave Love
2002-07-30 18:46 ` Richard Stallman
2002-07-08 18:20 ` Richard Stallman
2002-07-08 19:30 ` Luc Teirlinck
2002-07-09 18:51 ` Richard Stallman
2002-07-18 18:34 ` Dave Love
2002-07-19 16:54 ` Richard Stallman
2002-07-22 22:15 ` Dave Love
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=200207191749.g6JHnlw16800@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=d.love@dl.ac.uk \
--cc=emacs-devel@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.