\f
;;; Buffers Menu
-(defcustom buffers-menu-max-size (if (display-graphic-p) 15 10)
+;; Increasing this more might be problematic on TTY frames. See Bug#64398.
+(defcustom buffers-menu-max-size 15
"Maximum number of entries which may appear on the Buffers menu.
If this is a number, only that many most-recently-selected
buffers are shown.
If this is nil, all buffers are shown."
- :initialize #'custom-initialize-delay
:type '(choice natnum
(const :tag "All" nil))
:group 'menu
;; Make the menu of buffers proper.
(setq buffers-menu
(let ((i 0)
- (limit (if (boundp 'buffers-menu-max-size)
- (and (integerp buffers-menu-max-size)
- (> buffers-menu-max-size 1)
- buffers-menu-max-size)
- ;; Used when bootstrapping.
- 10))
+ (limit (and (integerp buffers-menu-max-size)
+ (> buffers-menu-max-size 1)
+ buffers-menu-max-size))
alist)
;; Put into each element of buffer-list
;; the name for actual display,