From: Stephen J. Turnbull
Date: Tue, 15 Jul 2014 16:11:33 +0900
Uwe Brauer writes:
> about a function called declare-function which GNU emacs
(defalias 'declare-function 'ignore)
IMHO the need for this function is a symptom of poor programming
practice. If the function being declared is internal, require the
library and be done with it. If it's an entry point it ought to be
autoloaded, and the byte compiler should be able to deal with it.
There are valid reasons for using this function that I wouldn't
classify as "poor programming". They are documented in the ELisp
manual, in the node "Declaring Functions". The purpose is to avoid
redundant warnings while byte compiling code, where the byte compiler
is not smart enough to understand that the function's definition will
be available at run time.
Of course, if one doesn't care about noise during byte compilation,
using the above defalias is the way to go.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta