diff options
| author | Eli Zaretskii | 2008-10-17 15:42:34 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-10-17 15:42:34 +0000 |
| commit | f36acfd9ec33f68f8364b87dfa0246e47cbdc365 (patch) | |
| tree | 885391a162a4b811ea6bb335400fd544c02581c1 | |
| parent | 96995b89238780a1b6c89c9eede2bb00973789dd (diff) | |
| download | emacs-f36acfd9ec33f68f8364b87dfa0246e47cbdc365.tar.gz emacs-f36acfd9ec33f68f8364b87dfa0246e47cbdc365.zip | |
(Startup Summary): Document `before-init-time' and `after-init-time'.
Document `initial-window-system' and `window-system-initialization-alist'.
Document reading the abbrevs file. Document the call to `server-start'
under --daemon. Rearrange a bit to be consistent with the code flow.
| -rw-r--r-- | doc/lispref/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 72 | ||||
| -rw-r--r-- | etc/NEWS | 7 |
3 files changed, 76 insertions, 11 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 466ad79bc29..c0e27ea4712 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2008-10-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * os.texi (Startup Summary): Document `before-init-time' and | ||
| 4 | `after-init-time'. Document `initial-window-system' and | ||
| 5 | `window-system-initialization-alist'. Document reading the | ||
| 6 | abbrevs file. Document the call to `server-start' under --daemon. | ||
| 7 | Rearrange a bit to be consistent with the code flow. | ||
| 8 | |||
| 1 | 2008-10-17 Martin Rudalics <rudalics@gmx.at> | 9 | 2008-10-17 Martin Rudalics <rudalics@gmx.at> |
| 2 | 10 | ||
| 3 | * windows.texi (Basic Windows, Splitting Windows): Fix whitespace | 11 | * windows.texi (Basic Windows, Splitting Windows): Fix whitespace |
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 842cad72f62..fda4ed2c8a5 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -69,24 +69,41 @@ adds the directory's subdirectories to the list, and these will be | |||
| 69 | scanned in their turn. The files @file{subdirs.el} are normally | 69 | scanned in their turn. The files @file{subdirs.el} are normally |
| 70 | generated automatically by Emacs installation. | 70 | generated automatically by Emacs installation. |
| 71 | 71 | ||
| 72 | @vindex before-init-time | ||
| 72 | @item | 73 | @item |
| 73 | It sets the language environment and the terminal coding system, | 74 | It records in the variable @code{before-init-time} the value of |
| 74 | if requested by environment variables such as @code{LANG}. | 75 | @code{current-time} (@pxref{Time of Day}). It also sets |
| 76 | @code{after-init-time} to @code{nil}, so as to signal Lisp programs | ||
| 77 | that Emacs initialization is in progress. | ||
| 75 | 78 | ||
| 79 | @vindex initial-window-system@r{, and startup} | ||
| 80 | @vindex window-system-initialization-alist | ||
| 76 | @item | 81 | @item |
| 77 | It loads the initialization library for the window system, if you are | 82 | It loads the initialization library for the window system specified by |
| 78 | using a window system. This library's name is | 83 | the variable @code{initial-window-system}. This library's name is |
| 79 | @file{term/@var{windowsystem}-win.el}. | 84 | @file{term/@var{windowsystem}-win.el}, where @var{windowsystem} is the |
| 85 | value of @code{initial-window-system}. From that library, it calls | ||
| 86 | the appropriate initialization function. The initialization function | ||
| 87 | is specified by @code{window-system-initialization-alist}, for each | ||
| 88 | supported window system. | ||
| 89 | |||
| 90 | @item | ||
| 91 | It sets the language environment and the terminal coding system, | ||
| 92 | if requested by environment variables such as @code{LANG}. | ||
| 80 | 93 | ||
| 81 | @item | 94 | @item |
| 82 | It processes the initial options. (Some of them are handled | 95 | It processes the initial options. (Some of them are handled |
| 83 | even earlier than this.) | 96 | even earlier than this.) |
| 84 | 97 | ||
| 85 | @item | 98 | @item |
| 86 | It initializes the window frame and faces, if appropriate. | 99 | It runs the normal hook @code{before-init-hook}. |
| 87 | 100 | ||
| 88 | @item | 101 | @item |
| 89 | It runs the normal hook @code{before-init-hook}. | 102 | It initializes the window frame and faces, if appropriate, and turns |
| 103 | on the menu bar and tool bar, if the initial frame needs them. | ||
| 104 | |||
| 105 | @item | ||
| 106 | It registers the default colors for text-only terminals. | ||
| 90 | 107 | ||
| 91 | @item | 108 | @item |
| 92 | It loads the library @file{site-start} (if any), unless the option | 109 | It loads the library @file{site-start} (if any), unless the option |
| @@ -108,6 +125,21 @@ command line.) The library's file name is usually @file{default.el}. | |||
| 108 | @cindex @file{default.el} | 125 | @cindex @file{default.el} |
| 109 | 126 | ||
| 110 | @item | 127 | @item |
| 128 | It loads your abbrevs from the file specified by | ||
| 129 | @code{abbrev-file-name} (@pxref{Abbrev Files, abbrev-file-name}), if | ||
| 130 | that file exists and can be read. (This is not done in @samp{-batch} | ||
| 131 | mode.) | ||
| 132 | |||
| 133 | @vindex after-init-time | ||
| 134 | @item | ||
| 135 | It records in the variable @code{after-init-time} the value of | ||
| 136 | @code{current-time}. This variable was set to @code{nil} at the | ||
| 137 | beginning of the Emacs session initialization (see above), so setting | ||
| 138 | it to the current time both signals that the initialization phase is | ||
| 139 | over, and, together with @code{before-init-time}, provides the | ||
| 140 | measurement of how long it took. | ||
| 141 | |||
| 142 | @item | ||
| 111 | It runs the normal hook @code{after-init-hook}. | 143 | It runs the normal hook @code{after-init-hook}. |
| 112 | 144 | ||
| 113 | @item | 145 | @item |
| @@ -116,8 +148,13 @@ the buffer @samp{*scratch*} is still current and still in Fundamental | |||
| 116 | mode. | 148 | mode. |
| 117 | 149 | ||
| 118 | @item | 150 | @item |
| 119 | It loads the terminal-specific Lisp file, if any, except when in batch | 151 | It loads the terminal-specific Lisp library, if any, except when in |
| 120 | mode or using a window system. | 152 | batch mode or when the variable @code{initial-window-system} (see |
| 153 | above) specifies a non-@code{nil} window system. The name of this | ||
| 154 | library is computed from the value of the variable | ||
| 155 | @code{term-file-prefix}; for the details, see @ref{Terminal-Specific}. | ||
| 156 | |||
| 157 | If the value of @code{term-file-prefix} is @code{nil}, this step is skipped. | ||
| 121 | 158 | ||
| 122 | @item | 159 | @item |
| 123 | It displays the initial echo area message, unless you have suppressed | 160 | It displays the initial echo area message, unless you have suppressed |
| @@ -139,11 +176,21 @@ It runs @code{window-setup-hook}. @xref{Window Systems}. | |||
| 139 | 176 | ||
| 140 | @item | 177 | @item |
| 141 | It displays copyleft, nonwarranty, and basic use information, provided | 178 | It displays copyleft, nonwarranty, and basic use information, provided |
| 142 | the value of @code{inhibit-startup-message} is @code{nil}, you didn't | 179 | the value of @code{inhibit-startup-screen} is @code{nil}, you didn't |
| 143 | specify @samp{--no-splash} or @samp{-Q}. | 180 | specify @samp{--no-splash} or @samp{-Q}. |
| 181 | |||
| 182 | @item | ||
| 183 | If the command-line arguments specified @option{--daemon}, @c FIXME: xref | ||
| 184 | it calls @code{server-start} (@pxref{Emacs Server,,, emacs, The GNU | ||
| 185 | Emacs Manual}). | ||
| 186 | |||
| 187 | @item | ||
| 188 | If started by the X session manager, it calls | ||
| 189 | @code{emacs-session-restore} passing it as argument the ID of the | ||
| 190 | previous session. @c FIXME: add an xref to the Emacs manual! | ||
| 144 | @end enumerate | 191 | @end enumerate |
| 145 | 192 | ||
| 146 | @defopt inhibit-startup-message | 193 | @defopt inhibit-startup-screen |
| 147 | This variable inhibits the initial startup messages (the nonwarranty, | 194 | This variable inhibits the initial startup messages (the nonwarranty, |
| 148 | etc.). If it is non-@code{nil}, then the messages are not printed. | 195 | etc.). If it is non-@code{nil}, then the messages are not printed. |
| 149 | 196 | ||
| @@ -152,6 +199,9 @@ you are familiar with the contents of the startup message. Do not set | |||
| 152 | this variable in the init file of a new user, or in a way that affects | 199 | this variable in the init file of a new user, or in a way that affects |
| 153 | more than one user, because that would prevent new users from receiving | 200 | more than one user, because that would prevent new users from receiving |
| 154 | the information they are supposed to see. | 201 | the information they are supposed to see. |
| 202 | |||
| 203 | @code{inhibit-startup-message} is an alias for this variable, for | ||
| 204 | back-compatibility. | ||
| 155 | @end defopt | 205 | @end defopt |
| 156 | 206 | ||
| 157 | @defopt inhibit-startup-echo-area-message | 207 | @defopt inhibit-startup-echo-area-message |
| @@ -286,6 +286,12 @@ inside of --eval command line arguments in order to access | |||
| 286 | following arguments. | 286 | following arguments. |
| 287 | 287 | ||
| 288 | ** The abbrev file is no longer read at startup in batch mode. | 288 | ** The abbrev file is no longer read at startup in batch mode. |
| 289 | |||
| 290 | ** Emacs now supports invocation by an X session manager. | ||
| 291 | It can save a session and restore it later. See the documentation of | ||
| 292 | the functions `emacs-session-save' and `emacs-session-restore'. | ||
| 293 | (Actually, this feature was introduced with Emacs 22, but it was not | ||
| 294 | documented.) | ||
| 289 | 295 | ||
| 290 | * Incompatible Editing Changes in Emacs 23.1 | 296 | * Incompatible Editing Changes in Emacs 23.1 |
| 291 | 297 | ||
| @@ -1195,6 +1201,7 @@ reset transient-mark-mode to the value OLDVAL. The values `only' and | |||
| 1195 | 1201 | ||
| 1196 | ** Emacs session information | 1202 | ** Emacs session information |
| 1197 | 1203 | ||
| 1204 | +++ | ||
| 1198 | *** The new variables `before-init-time' and `after-init-time' record the | 1205 | *** The new variables `before-init-time' and `after-init-time' record the |
| 1199 | value of `current-time' before and after Emacs loads the init files. | 1206 | value of `current-time' before and after Emacs loads the init files. |
| 1200 | 1207 | ||