From df11b656d3cafdf3073519787064a84de13cccb6 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 4 Oct 2001 11:18:37 +0000 Subject: [PATCH] (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 . --- etc/NEWS | 4 ++++ lisp/ChangeLog | 9 ++++++++- lisp/startup.el | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index e32a9391356..434e22f20f8 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -15,6 +15,10 @@ much pure storage it will approximately need. `${foo}' in the specified new value of the environment variable. To include a `$' in the value, use `$$'. +** New user option `inhibit-startup-buffer-menu'. +When loading many files, for instance with `emacs *', Emacs normally +displays a buffer menu. This option turns the buffer menu off. + * Lisp Changes in Emacs 21.2 diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 89c34984ca2..91141c3cd73 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,14 @@ 2001-10-04 Gerd Moellmann + Added to NEWS. + + * startup.el (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 . + This allows upto 99999 messages in the summary without screwing up - the summary. Previously 9999 were the maximum. + the summary sorting. Previously 9999 was the maximum. Added + to NEWS. * mail/rmailsum.el (rmail-make-summary-line) (rmail-make-summary-line-1, rmail-summary-next-same-subject) 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." :type 'boolean :group 'initialization) +(defcustom inhibit-startup-buffer-menu nil + "*Non-nil inhibits display of buffer list when more than 2 files are loaded." + :type 'boolean + :group 'initialization) + (defvar command-switch-alist nil "Alist of command-line switches. Elements look like (SWITCH-STRING . HANDLER-FUNCTION). @@ -1621,6 +1626,7 @@ Type \\[describe-distribution] for information on getting the latest version.")) ;; show user what they all are. But leave the last one current. (and (> file-count 2) (not noninteractive) + (not inhibit-startup-buffer-menu) (or (get-buffer-window first-file-buffer) (list-buffers)))))) -- 2.39.5