summaryrefslogtreecommitdiff
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-06-06 00:19:23 -0700
committerGlenn Morris <rgm@gnu.org>2014-06-06 00:19:23 -0700
commitb83798031cae6d1297ae5746aebb34cca16c6ac9 (patch)
tree1ca0116447eb1a716bd6a2d1d86f55581f92d2b2 /lisp/startup.el
parentb4b5639746d502c97eb8a0d9cc3b4973ccf37665 (diff)
downloademacs-b83798031cae6d1297ae5746aebb34cca16c6ac9.tar.gz
emacs-b83798031cae6d1297ae5746aebb34cca16c6ac9.tar.bz2
emacs-b83798031cae6d1297ae5746aebb34cca16c6ac9.zip
Doc updates re window-setup-hook
* lisp/startup.el (window-setup-hook): Doc fix. * doc/lispref/display.texi (Window Systems): Remove window-setup-hook. * doc/lispref/os.texi (Startup Summary, Init File): Improve description of window-setup-hook. (Terminal-Specific): Update window-setup-hook cross-reference. * doc/lispref/hooks.texi (Standard Hooks): Update window-setup-hook cross-reference.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 129b54d974f..5f1bdeadbd3 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -302,9 +302,12 @@ keys for use under X. It is used in a fashion analogous to the
environment variable TERM.")
(defvar window-setup-hook nil
- "Normal hook run to initialize window system display.
-Emacs runs this hook after processing the command line arguments and loading
-the user's init file.")
+ "Normal hook run after loading init files and handling the command line.
+This is very similar to `emacs-startup-hook'. The only difference
+is that this hook runs after frame parameters have been set up in
+response to any settings from your init file. Unless this matters
+to you, use `emacs-startup-hook' instead. (The name of this hook
+is due to historical reasons, and does not reflect its purpose very well.)")
(defcustom initial-major-mode 'lisp-interaction-mode
"Major mode command symbol to use for the initial `*scratch*' buffer."