diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-01-16 02:47:15 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-01-16 02:47:15 +0000 |
commit | 7f551e47f1f757e94d5b9c4a87b2284029267e73 (patch) | |
tree | 88405852e75ad0955e9925972cf5a8325c8926af /lispref/loading.texi | |
parent | 863fd6a7df8ec7f5379fb1c8aaea2d1194fd22d6 (diff) | |
download | emacs-7f551e47f1f757e94d5b9c4a87b2284029267e73.tar.gz |
(Autoload): Explain how to autoload function definitions that use
unusual macros.
Diffstat (limited to 'lispref/loading.texi')
-rw-r--r-- | lispref/loading.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/loading.texi b/lispref/loading.texi index 837da4c79a4..bee4aca587f 100644 --- a/lispref/loading.texi +++ b/lispref/loading.texi @@ -478,6 +478,18 @@ convention used only in the preloaded uncompiled Lisp files such as documentation string in the @file{etc/DOC} file. @xref{Building Emacs}. See also the commentary in @file{lib-src/make-docfile.c}. + If you write a function definition with an unusual macro that is not +one of the known and recognized function definition methods, use of an +ordinary magic autoload comment would copy the whole definition into +@code{loaddefs.el}. That is not desirable. You can put the desired +@code{autoload} call into @code{loaddefs.el} instead by writing this: + +@smallexample +;;;###autoload (autoload 'foo "myfile") +(mydefunmacro foo + ...) +@end smallexample + @node Repeated Loading @section Repeated Loading @cindex repeated loading |