aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/loading.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/loading.texi')
-rw-r--r--doc/lispref/loading.texi33
1 files changed, 25 insertions, 8 deletions
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index 3c2fa60248e..47a2a39ed63 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -500,14 +500,31 @@ Building Emacs loads @file{loaddefs.el} and thus calls @code{autoload}.
500autoloads for all files in the current directory. 500autoloads for all files in the current directory.
501 501
502 The same magic comment can copy any kind of form into 502 The same magic comment can copy any kind of form into
503@file{loaddefs.el}. If the form following the magic comment is not a 503@file{loaddefs.el}. The form following the magic comment is copied
504function-defining form or a @code{defcustom} form, it is copied 504verbatim, @emph{except} if it is one of the forms which the autoload
505verbatim. ``Function-defining forms'' include @code{define-skeleton}, 505facility handles specially (e.g.@: by conversion into an
506@code{define-derived-mode}, @code{define-generic-mode} and 506@code{autoload} call). The forms which are not copied verbatim are
507@code{define-minor-mode} as well as @code{defun} and 507the following:
508@code{defmacro}. To save space, a @code{defcustom} form is converted to 508
509a @code{defvar} in @file{loaddefs.el}, with some additional information 509@table @asis
510if it uses @code{:require}. 510@item Definitions for function or function-like objects:
511@code{defun} and @code{defmacro}; also @code{defun*} and
512@code{defmacro*} (@pxref{Argument Lists,,,cl,CL Manual}), and
513@code{define-overloadable-function} (see the commentary in
514@file{mode-local.el}).
515
516@item Definitions for major or minor modes:
517@code{define-derived-mode}, @code{define-minor-mode},
518@code{define-compilation-mode}, @code{define-generic-mode},
519@code{easy-mmode-define-global-mode}, @code{define-global-minor-mode},
520@code{define-globalized-minor-mode}, and
521@code{easy-mmode-define-minor-mode}.
522
523@item Other definition types:
524@code{defcustom}, @code{defgroup}, @code{defclass}
525(@pxref{Top,EIEIO,,eieio,EIEIO}), and @code{define-skeleton} (see the
526commentary in @file{skeleton.el}).
527@end table
511 528
512 You can also use a magic comment to execute a form at build time 529 You can also use a magic comment to execute a form at build time
513@emph{without} executing it when the file itself is loaded. To do this, 530@emph{without} executing it when the file itself is loaded. To do this,