aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-17 15:42:34 +0000
committerEli Zaretskii2008-10-17 15:42:34 +0000
commitf36acfd9ec33f68f8364b87dfa0246e47cbdc365 (patch)
tree885391a162a4b811ea6bb335400fd544c02581c1
parent96995b89238780a1b6c89c9eede2bb00973789dd (diff)
downloademacs-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/ChangeLog8
-rw-r--r--doc/lispref/os.texi72
-rw-r--r--etc/NEWS7
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 @@
12008-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
12008-10-17 Martin Rudalics <rudalics@gmx.at> 92008-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
69scanned in their turn. The files @file{subdirs.el} are normally 69scanned in their turn. The files @file{subdirs.el} are normally
70generated automatically by Emacs installation. 70generated automatically by Emacs installation.
71 71
72@vindex before-init-time
72@item 73@item
73It sets the language environment and the terminal coding system, 74It records in the variable @code{before-init-time} the value of
74if 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
77that 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
77It loads the initialization library for the window system, if you are 82It loads the initialization library for the window system specified by
78using a window system. This library's name is 83the 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
85value of @code{initial-window-system}. From that library, it calls
86the appropriate initialization function. The initialization function
87is specified by @code{window-system-initialization-alist}, for each
88supported window system.
89
90@item
91It sets the language environment and the terminal coding system,
92if requested by environment variables such as @code{LANG}.
80 93
81@item 94@item
82It processes the initial options. (Some of them are handled 95It processes the initial options. (Some of them are handled
83even earlier than this.) 96even earlier than this.)
84 97
85@item 98@item
86It initializes the window frame and faces, if appropriate. 99It runs the normal hook @code{before-init-hook}.
87 100
88@item 101@item
89It runs the normal hook @code{before-init-hook}. 102It initializes the window frame and faces, if appropriate, and turns
103on the menu bar and tool bar, if the initial frame needs them.
104
105@item
106It registers the default colors for text-only terminals.
90 107
91@item 108@item
92It loads the library @file{site-start} (if any), unless the option 109It 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
128It loads your abbrevs from the file specified by
129@code{abbrev-file-name} (@pxref{Abbrev Files, abbrev-file-name}), if
130that file exists and can be read. (This is not done in @samp{-batch}
131mode.)
132
133@vindex after-init-time
134@item
135It records in the variable @code{after-init-time} the value of
136@code{current-time}. This variable was set to @code{nil} at the
137beginning of the Emacs session initialization (see above), so setting
138it to the current time both signals that the initialization phase is
139over, and, together with @code{before-init-time}, provides the
140measurement of how long it took.
141
142@item
111It runs the normal hook @code{after-init-hook}. 143It 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
116mode. 148mode.
117 149
118@item 150@item
119It loads the terminal-specific Lisp file, if any, except when in batch 151It loads the terminal-specific Lisp library, if any, except when in
120mode or using a window system. 152batch mode or when the variable @code{initial-window-system} (see
153above) specifies a non-@code{nil} window system. The name of this
154library is computed from the value of the variable
155@code{term-file-prefix}; for the details, see @ref{Terminal-Specific}.
156
157If the value of @code{term-file-prefix} is @code{nil}, this step is skipped.
121 158
122@item 159@item
123It displays the initial echo area message, unless you have suppressed 160It 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
141It displays copyleft, nonwarranty, and basic use information, provided 178It displays copyleft, nonwarranty, and basic use information, provided
142the value of @code{inhibit-startup-message} is @code{nil}, you didn't 179the value of @code{inhibit-startup-screen} is @code{nil}, you didn't
143specify @samp{--no-splash} or @samp{-Q}. 180specify @samp{--no-splash} or @samp{-Q}.
181
182@item
183If the command-line arguments specified @option{--daemon}, @c FIXME: xref
184it calls @code{server-start} (@pxref{Emacs Server,,, emacs, The GNU
185Emacs Manual}).
186
187@item
188If started by the X session manager, it calls
189@code{emacs-session-restore} passing it as argument the ID of the
190previous 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
147This variable inhibits the initial startup messages (the nonwarranty, 194This variable inhibits the initial startup messages (the nonwarranty,
148etc.). If it is non-@code{nil}, then the messages are not printed. 195etc.). 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
152this variable in the init file of a new user, or in a way that affects 199this variable in the init file of a new user, or in a way that affects
153more than one user, because that would prevent new users from receiving 200more than one user, because that would prevent new users from receiving
154the information they are supposed to see. 201the information they are supposed to see.
202
203@code{inhibit-startup-message} is an alias for this variable, for
204back-compatibility.
155@end defopt 205@end defopt
156 206
157@defopt inhibit-startup-echo-area-message 207@defopt inhibit-startup-echo-area-message
diff --git a/etc/NEWS b/etc/NEWS
index 727beb346cd..0653cda7c9e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -286,6 +286,12 @@ inside of --eval command line arguments in order to access
286following arguments. 286following 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.
291It can save a session and restore it later. See the documentation of
292the functions `emacs-session-save' and `emacs-session-restore'.
293(Actually, this feature was introduced with Emacs 22, but it was not
294documented.)
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
1199value of `current-time' before and after Emacs loads the init files. 1206value of `current-time' before and after Emacs loads the init files.
1200 1207