aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-05 09:24:51 +0000
committerGerd Moellmann2001-10-05 09:24:51 +0000
commit802a980a596407d8de800b26380944fd1303a366 (patch)
tree443d263e3421d77df6dd495b27457fa3027aaae6
parent67085aba974c00f4895003e8cea7442a414ae00c (diff)
downloademacs-802a980a596407d8de800b26380944fd1303a366.tar.gz
emacs-802a980a596407d8de800b26380944fd1303a366.zip
(inhibit-startup-buffer-menu): New user-option.
(command-line-1): If inhibit-startup-buffer-menu is set, don't display the buffer menu. From Simon Josefsson <jas@extundo.com>.
-rw-r--r--lisp/startup.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 45de4ea80a2..b12834a823a 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -155,6 +155,11 @@ the startup message unless he personally acts to inhibit it."
155 :type 'boolean 155 :type 'boolean
156 :group 'initialization) 156 :group 'initialization)
157 157
158(defcustom inhibit-startup-buffer-menu nil
159 "*Non-nil inhibits display of buffer list when more than 2 files are loaded."
160 :type 'boolean
161 :group 'initialization)
162
158(defvar command-switch-alist nil 163(defvar command-switch-alist nil
159 "Alist of command-line switches. 164 "Alist of command-line switches.
160Elements look like (SWITCH-STRING . HANDLER-FUNCTION). 165Elements look like (SWITCH-STRING . HANDLER-FUNCTION).
@@ -1621,6 +1626,7 @@ Type \\[describe-distribution] for information on getting the latest version."))
1621 ;; show user what they all are. But leave the last one current. 1626 ;; show user what they all are. But leave the last one current.
1622 (and (> file-count 2) 1627 (and (> file-count 2)
1623 (not noninteractive) 1628 (not noninteractive)
1629 (not inhibit-startup-buffer-menu)
1624 (or (get-buffer-window first-file-buffer) 1630 (or (get-buffer-window first-file-buffer)
1625 (list-buffers)))))) 1631 (list-buffers))))))
1626 1632