emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: declare-function from included file


From: Stefan Monnier
Subject: Re: declare-function from included file
Date: Wed, 19 Mar 2008 15:30:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Personally I'm not bothered too much by them but since we are talking
> about code which is part of Emacs this is likely not an option.

Silencing incorrect warnings is a good thing.  But it's not a priority
and most importantly, is less important than keeping code simple.

So the `fset' hack is a really bad idea, just like the tramp-let-maybe.
Better live with warnings than with such contraptions.

Adding `declare-function' is not that big a problem since it doesn't
make code more complex, but if you don't like it, don't use it.

This said, if you have a need for *many* declare-function, then maybe
the problem is elsewhere and you should report it (maybe Emacs could be
more clever about how to detect when a warning is needed).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]