diff options
| author | Richard M. Stallman | 2005-10-22 15:15:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-10-22 15:15:56 +0000 |
| commit | 55f77e1ce3460637b96ff9f376120fe6735086e6 (patch) | |
| tree | 90bb8749fb695513c9bc05e349e6988f98273eab | |
| parent | c4f484f2796623300cb64a2ce23d1b90a688e4e6 (diff) | |
| download | emacs-55f77e1ce3460637b96ff9f376120fe6735086e6.tar.gz emacs-55f77e1ce3460637b96ff9f376120fe6735086e6.zip | |
(Building Emacs): Document eval-at-startup.
| -rw-r--r-- | lispref/internals.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/internals.texi b/lispref/internals.texi index e032f5a7ddf..2bc91a64e92 100644 --- a/lispref/internals.texi +++ b/lispref/internals.texi | |||
| @@ -117,6 +117,18 @@ expect in an ordinary unmodified Emacs. If you feel you must override | |||
| 117 | normal features for your site, do it with @file{default.el}, so that | 117 | normal features for your site, do it with @file{default.el}, so that |
| 118 | users can override your changes if they wish. @xref{Startup Summary}. | 118 | users can override your changes if they wish. @xref{Startup Summary}. |
| 119 | 119 | ||
| 120 | In a package that can be preloaded, it is sometimes useful to | ||
| 121 | specify a computation to be done when Emacs subsequently starts up. | ||
| 122 | For this, use @code{eval-at-startup}: | ||
| 123 | |||
| 124 | @defmacro eval-at-startup body@dots{} | ||
| 125 | This evaluates the @var{body} forms, either immediately if running in | ||
| 126 | an Emacs that has already started up, or later when Emacs does start | ||
| 127 | up. Since the value of the @var{body} forms is not necessarily | ||
| 128 | available when the @code{eval-at-startup} form is run, that form | ||
| 129 | always returns @code{nil}. | ||
| 130 | @end defmacro | ||
| 131 | |||
| 120 | @defun dump-emacs to-file from-file | 132 | @defun dump-emacs to-file from-file |
| 121 | @cindex unexec | 133 | @cindex unexec |
| 122 | This function dumps the current state of Emacs into an executable file | 134 | This function dumps the current state of Emacs into an executable file |