aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-02-16 09:19:33 -0500
committerStefan Monnier2019-02-16 09:19:33 -0500
commit6b7b85b60e76c5e867f77387e7c57d49f4c0a2cd (patch)
treeb5ab1432f02e50d3401baca690778bf8452599dd
parent478bbf7c80e71ff84f0e4e1363bf86e93d9c51c3 (diff)
downloademacs-6b7b85b60e76c5e867f77387e7c57d49f4c0a2cd.tar.gz
emacs-6b7b85b60e76c5e867f77387e7c57d49f4c0a2cd.zip
* lisp/startup.el: Rename load-user-init-file
Remove redundant :groups. (startup--load-user-init-file): Rename from load-user-init-file.
-rw-r--r--lisp/startup.el32
1 files changed, 12 insertions, 20 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 112b9b25961..55ebd4d38c8 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -60,8 +60,7 @@ string or function value that this variable has."
60 (const :tag "Remember Mode notes buffer" remember-notes) 60 (const :tag "Remember Mode notes buffer" remember-notes)
61 (function :tag "Function") 61 (function :tag "Function")
62 (const :tag "Lisp scratch buffer" t)) 62 (const :tag "Lisp scratch buffer" t))
63 :version "23.1" 63 :version "23.1")
64 :group 'initialization)
65 64
66(defvaralias 'inhibit-splash-screen 'inhibit-startup-screen) 65(defvaralias 'inhibit-splash-screen 'inhibit-startup-screen)
67(defvaralias 'inhibit-startup-message 'inhibit-startup-screen) 66(defvaralias 'inhibit-startup-message 'inhibit-startup-screen)
@@ -71,8 +70,7 @@ string or function value that this variable has."
71 70
72This is for use in your personal init file (but NOT site-start.el), 71This is for use in your personal init file (but NOT site-start.el),
73once you are familiar with the contents of the startup screen." 72once you are familiar with the contents of the startup screen."
74 :type 'boolean 73 :type 'boolean)
75 :group 'initialization)
76 74
77(defvar startup-screen-inhibit-startup-screen nil) 75(defvar startup-screen-inhibit-startup-screen nil)
78 76
@@ -101,18 +99,15 @@ instead:
101Thus, someone else using a copy of your init file will see the 99Thus, someone else using a copy of your init file will see the
102startup message unless he personally acts to inhibit it." 100startup message unless he personally acts to inhibit it."
103 :type '(choice (const :tag "Don't inhibit") 101 :type '(choice (const :tag "Don't inhibit")
104 (string :tag "Enter your user name, to inhibit")) 102 (string :tag "Enter your user name, to inhibit")))
105 :group 'initialization)
106 103
107(defcustom inhibit-default-init nil 104(defcustom inhibit-default-init nil
108 "Non-nil inhibits loading the `default' library." 105 "Non-nil inhibits loading the `default' library."
109 :type 'boolean 106 :type 'boolean)
110 :group 'initialization)
111 107
112(defcustom inhibit-startup-buffer-menu nil 108(defcustom inhibit-startup-buffer-menu nil
113 "Non-nil inhibits display of buffer list when more than 2 files are loaded." 109 "Non-nil inhibits display of buffer list when more than 2 files are loaded."
114 :type 'boolean 110 :type 'boolean)
115 :group 'initialization)
116 111
117(defvar command-switch-alist nil 112(defvar command-switch-alist nil
118 "Alist of command-line switches. 113 "Alist of command-line switches.
@@ -336,8 +331,7 @@ is due to historical reasons, and does not reflect its purpose very well.)")
336 331
337(defcustom initial-major-mode 'lisp-interaction-mode 332(defcustom initial-major-mode 'lisp-interaction-mode
338 "Major mode command symbol to use for the initial `*scratch*' buffer." 333 "Major mode command symbol to use for the initial `*scratch*' buffer."
339 :type 'function 334 :type 'function)
340 :group 'initialization)
341 335
342(defvar init-file-user nil 336(defvar init-file-user nil
343 "Identity of user whose init file is or was read. 337 "Identity of user whose init file is or was read.
@@ -376,7 +370,6 @@ it visible in the relevant context. However, actually customizing it
376is not allowed, since it would not work anyway. The only way to set 370is not allowed, since it would not work anyway. The only way to set
377this variable usefully is to set it while building and dumping Emacs." 371this variable usefully is to set it while building and dumping Emacs."
378 :type '(choice (const :tag "none" nil) string) 372 :type '(choice (const :tag "none" nil) string)
379 :group 'initialization
380 :initialize #'custom-initialize-default 373 :initialize #'custom-initialize-default
381 :set (lambda (_variable _value) 374 :set (lambda (_variable _value)
382 (error "Customizing `site-run-file' does not work"))) 375 (error "Customizing `site-run-file' does not work")))
@@ -886,7 +879,7 @@ If STYLE is nil, display appropriately for the terminal."
886 (when standard-display-table 879 (when standard-display-table
887 (aset standard-display-table char nil))))))) 880 (aset standard-display-table char nil)))))))
888 881
889(defun load-user-init-file 882(defun startup--load-user-init-file
890 (filename-function &optional alternate-filename-function load-defaults) 883 (filename-function &optional alternate-filename-function load-defaults)
891 "Load a user init-file. 884 "Load a user init-file.
892FILENAME-FUNCTION is called with no arguments and should return 885FILENAME-FUNCTION is called with no arguments and should return
@@ -1164,11 +1157,11 @@ please check its value")
1164 :error)))) 1157 :error))))
1165 1158
1166 ;; Load the early init file, if found. 1159 ;; Load the early init file, if found.
1167 (load-user-init-file 1160 (startup--load-user-init-file
1168 (lambda () 1161 (lambda ()
1169 (expand-file-name 1162 (expand-file-name
1170 ;; We use an explicit .el extension here to force 1163 ;; We use an explicit .el extension here to force
1171 ;; load-user-init-file to set user-init-file to "early-init.el", 1164 ;; startup--load-user-init-file to set user-init-file to "early-init.el",
1172 ;; with the .el extension, if the file doesn't exist, not just 1165 ;; with the .el extension, if the file doesn't exist, not just
1173 ;; "early-init" without an extension, as it does for ".emacs". 1166 ;; "early-init" without an extension, as it does for ".emacs".
1174 "early-init.el" 1167 "early-init.el"
@@ -1308,7 +1301,7 @@ please check its value")
1308 (load site-run-file t t))) 1301 (load site-run-file t t)))
1309 1302
1310 ;; Load that user's init file, or the default one, or none. 1303 ;; Load that user's init file, or the default one, or none.
1311 (load-user-init-file 1304 (startup--load-user-init-file
1312 (lambda () 1305 (lambda ()
1313 (cond 1306 (cond
1314 ((eq system-type 'ms-dos) 1307 ((eq system-type 'ms-dos)
@@ -1481,8 +1474,7 @@ settings will be marked as \"CHANGED outside of Customize\"."
1481 "Initial documentation displayed in *scratch* buffer at startup. 1474 "Initial documentation displayed in *scratch* buffer at startup.
1482If this is nil, no message will be displayed." 1475If this is nil, no message will be displayed."
1483 :type '(choice (text :tag "Message") 1476 :type '(choice (text :tag "Message")
1484 (const :tag "none" nil)) 1477 (const :tag "none" nil)))
1485 :group 'initialization)
1486 1478
1487 1479
1488;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1480;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -1636,13 +1628,13 @@ Each element in the list should be a list of strings or pairs
1636 1628
1637 1629
1638(defgroup fancy-splash-screen () 1630(defgroup fancy-splash-screen ()
1631 ;; FIXME: Do we really need this group with a single custom var?
1639 "Fancy splash screen when Emacs starts." 1632 "Fancy splash screen when Emacs starts."
1640 :version "21.1" 1633 :version "21.1"
1641 :group 'initialization) 1634 :group 'initialization)
1642 1635
1643(defcustom fancy-splash-image nil 1636(defcustom fancy-splash-image nil
1644 "The image to show in the splash screens, or nil for defaults." 1637 "The image to show in the splash screens, or nil for defaults."
1645 :group 'fancy-splash-screen
1646 :type '(choice (const :tag "Default" nil) 1638 :type '(choice (const :tag "Default" nil)
1647 (file :tag "File"))) 1639 (file :tag "File")))
1648 1640