[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare-function from included file
From: |
Glenn Morris |
Subject: |
Re: declare-function from included file |
Date: |
Tue, 18 Mar 2008 20:47:59 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Ralf Angeli wrote:
> is it possible to put calls to `declare-function' in a file to be
> included during byte compilation? The following does not seem not work:
No, because by design declare-function only has an effect when being
_compiled_, and you're not compiling the code in the included file.
(At least, I think that explains it.)
> I can silence the byte compiler by using (fset 'bar (lambda (&rest
>args) nil)) in include.el instead of the `declare-function' call.
> Would this be a better alternative?
That looks ugly to me, and could break loading of the non-compiled
code. Why not just put your declare-function statements in the right
file? Though I guess the whole point of this is that you don't want
to. Or live with the warnings.
- declare-function from included file, Ralf Angeli, 2008/03/16
- Re: declare-function from included file,
Glenn Morris <=
- Re: declare-function from included file, Ralf Angeli, 2008/03/19
- Re: declare-function from included file, Stefan Monnier, 2008/03/19
- Re: declare-function from included file, Ralf Angeli, 2008/03/19
- Re: declare-function from included file, Dan Nicolaescu, 2008/03/19
- Re: declare-function from included file, Ralf Angeli, 2008/03/19
- Re: declare-function from included file, Dan Nicolaescu, 2008/03/19
- Re: declare-function from included file, Ralf Angeli, 2008/03/19
- Re: declare-function from included file, Dan Nicolaescu, 2008/03/19