diff options
| author | Chong Yidong | 2012-03-10 12:00:13 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-03-10 12:00:13 +0800 |
| commit | bc44be50bac4fcd9d9c3a623964769607800bf36 (patch) | |
| tree | daea7b9f9703d3c6c1dd396a3c1fd0780481ac08 | |
| parent | 83ef8187f4841c160d3ef656149ed1ee14461867 (diff) | |
| download | emacs-bc44be50bac4fcd9d9c3a623964769607800bf36.tar.gz emacs-bc44be50bac4fcd9d9c3a623964769607800bf36.zip | |
* loading.texi (Autoload): Explicitly state which forms are processed specially.
Fixes: debbugs:7783
| -rw-r--r-- | doc/lispref/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/lispref/loading.texi | 33 |
2 files changed, 28 insertions, 8 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 4a36d4939df..5823334f86a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-03-10 Chong Yidong <cyd@gnu.org> | 1 | 2012-03-10 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * loading.texi (Autoload): Explicitly state which forms are | ||
| 4 | processed specially (Bug#7783). | ||
| 5 | |||
| 3 | * keymaps.texi (Mouse Menus): Describe non-toolkit behavior as the | 6 | * keymaps.texi (Mouse Menus): Describe non-toolkit behavior as the |
| 4 | non-default situation. Describe one-submenu exception (Bug#7695). | 7 | non-default situation. Describe one-submenu exception (Bug#7695). |
| 5 | 8 | ||
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}. | |||
| 500 | autoloads for all files in the current directory. | 500 | autoloads 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 |
| 504 | function-defining form or a @code{defcustom} form, it is copied | 504 | verbatim, @emph{except} if it is one of the forms which the autoload |
| 505 | verbatim. ``Function-defining forms'' include @code{define-skeleton}, | 505 | facility 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 | 507 | the following: |
| 508 | @code{defmacro}. To save space, a @code{defcustom} form is converted to | 508 | |
| 509 | a @code{defvar} in @file{loaddefs.el}, with some additional information | 509 | @table @asis |
| 510 | if 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 | ||
| 526 | commentary 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, |