Eli Zaretskii writes:
There are valid reasons for using this function that I wouldn't
classify as "poor programming".
I'm sure there are, just as there are valid reasons for
`ignore-errors' and the like.
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
Most of the instances I've seen, however, would just as well be served
by a require, and better served by refactoring (especially in cases
where the intent was to save a few KB of RAM by requiring only at
Of course, if one doesn't care about noise during byte
using the above defalias is the way to go.
Not really. It's just a stopgap until we get around to implementing
`declare-function'. I don't like it, but we don't have much say in
this so we have to follow Emacs usage.
XEmacs-Beta mailing list