aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-18 22:39:51 +0000
committerJim Blandy1993-05-18 22:39:51 +0000
commit4e1b1e728831625dcea5f8c0b0fe77d48cc970ab (patch)
tree5a1608a5612b17a4bc2cd12edde6d637536dadac
parentdb9e92962de6968451450670744deace186d306d (diff)
downloademacs-4e1b1e728831625dcea5f8c0b0fe77d48cc970ab.tar.gz
emacs-4e1b1e728831625dcea5f8c0b0fe77d48cc970ab.zip
* startup.el (normal-top-level, command-line, command-line-1):
Don't call the frame and face initialization functions unless they're bound. * frame.el (frame-notice-user-settings): Don't make frame-initial-frame unbound; just set it to nil. * startup.el (command-line-1): Call frame-notice-user-settings before displaying the startup message.
-rw-r--r--lisp/startup.el18
1 files changed, 14 insertions, 4 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 10777d018e1..b7552fad26b 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -147,7 +147,8 @@ directory name of the directory where the `.emacs' file was looked for.")
147 (run-hooks 'emacs-startup-hook) 147 (run-hooks 'emacs-startup-hook)
148 (and term-setup-hook 148 (and term-setup-hook
149 (run-hooks 'term-setup-hook)) 149 (run-hooks 'term-setup-hook))
150 (frame-notice-user-settings) 150 (if (fboundp 'frame-notice-user-settings)
151 (frame-notice-user-settings))
151 (and window-setup-hook 152 (and window-setup-hook
152 (run-hooks 'window-setup-hook))))) 153 (run-hooks 'window-setup-hook)))))
153 154
@@ -214,9 +215,10 @@ directory name of the directory where the `.emacs' file was looked for.")
214 (setcdr command-line-args args)) 215 (setcdr command-line-args args))
215 216
216 ;; Under X Windows, this creates the X frame and deletes the terminal frame. 217 ;; Under X Windows, this creates the X frame and deletes the terminal frame.
217 (frame-initialize) 218 (if (fboundp 'frame-initialize)
218 219 (frame-initialize))
219 (face-initialize) 220 (if (fboundp 'face-initialize)
221 (face-initialize))
220 222
221 (run-hooks 'before-init-hook) 223 (run-hooks 'before-init-hook)
222 224
@@ -293,6 +295,14 @@ directory name of the directory where the `.emacs' file was looked for.")
293 (run-hooks 'term-setup-hook)) 295 (run-hooks 'term-setup-hook))
294 ;; Don't let the hook be run twice. 296 ;; Don't let the hook be run twice.
295 (setq term-setup-hook nil) 297 (setq term-setup-hook nil)
298
299 ;; It's important to notice the user settings before we
300 ;; display the startup message; otherwise, the settings
301 ;; won't take effect until the user gives the first
302 ;; keystroke, and that's distracting.
303 (if (fboundp 'frame-notice-user-settings)
304 (frame-notice-user-settings))
305
296 (and window-setup-hook 306 (and window-setup-hook
297 (run-hooks 'window-setup-hook)) 307 (run-hooks 'window-setup-hook))
298 (setq window-setup-hook nil) 308 (setq window-setup-hook nil)