comparison lisp/startup.el @ 384:9dab5ca1890f

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Mon, 12 Aug 1991 13:15:12 +0000
parents d56e16bd220a
children 6e0a136fca4f
comparison
equal deleted inserted replaced
383:4f7094a6b826 384:9dab5ca1890f
73 processes argi. If it does so, it may consume successive arguments by 73 processes argi. If it does so, it may consume successive arguments by
74 altering command-line-args-left to remove them.") 74 altering command-line-args-left to remove them.")
75 75
76 (defvar pre-init-hook nil 76 (defvar pre-init-hook nil
77 "Functions to call after handling urgent options but before loading init file. 77 "Functions to call after handling urgent options but before loading init file.
78 The window/screen system uses this to open screens to display messages while 78 The screen system uses this to open screens to display messages while
79 Emacs loads the user's initialization file.") 79 Emacs loads the user's initialization file.")
80 80
81 (defvar term-setup-hook nil 81 (defvar term-setup-hook nil
82 "Function to be called after loading terminal-specific lisp code. 82 "Function to be called after loading terminal-specific lisp code.
83 It is called with no arguments. This variable exists for users to set, 83 It is called with no arguments. This variable exists for users to set,
145 (setq version-control nil)) 145 (setq version-control nil))
146 ((or (string= vc "never") 146 ((or (string= vc "never")
147 (string= vc "simple")) 147 (string= vc "simple"))
148 (setq version-control 'never)))) 148 (setq version-control 'never))))
149 149
150 ;; Choose a good default value for split-window-keep-point.
151 (setq split-window-keep-point (> baud-rate 2400))
152
150 ;; Read window system's init file if using a window system. 153 ;; Read window system's init file if using a window system.
151 (if (and window-system (not noninteractive)) 154 (if (and window-system (not noninteractive))
152 (condition-case data 155 (condition-case data
153 (load (concat term-file-prefix 156 (load (concat term-file-prefix
154 (symbol-name window-system) 157 (symbol-name window-system)
194 (t (setq done t))))) 197 (t (setq done t)))))
195 198
196 ;; Re-attach the program name to the front of the arg list. 199 ;; Re-attach the program name to the front of the arg list.
197 (setcdr command-line-args args)) 200 (setcdr command-line-args args))
198 201
199 ;; If the window system asked to, let it set up some initial screens. 202 (run-hooks 'pre-init-hook)
200 (if pre-init-hook (funcall pre-init-hook))
201 203
202 ;; Load that user's init file, or the default one, or none. 204 ;; Load that user's init file, or the default one, or none.
203 (let ((debug-on-error init-file-debug) 205 (let ((debug-on-error init-file-debug)
204 ;; This function actually reads the init files. 206 ;; This function actually reads the init files.
205 (inner 207 (inner