(defcustom tab-line-new-tab-choice t
"Defines what to show in a new tab.
If t, display a selection menu with all available buffers.
-If the value is a function, call it with no arguments.
-If nil, don't show the new tab button."
+If the value is a function, call it with no arguments."
:type '(choice (const :tag "Buffer menu" t)
- (function :tag "Function")
- (const :tag "No button" nil))
+ (function :tag "Function"))
+ :group 'tab-line
+ :version "27.1")
+
+(defcustom tab-line-new-button-show t
+ "If non-nil, show the \"New tab\" button in the tab line."
+ :type 'boolean
+ :initialize 'custom-initialize-default
+ :set (lambda (sym val)
+ (set-default sym val)
+ (force-mode-line-update))
:group 'tab-line
:version "27.1")
'help-echo "Click to scroll right")
"Button for scrolling horizontally to the right.")
-(defvar tab-line-separator nil)
+(defvar tab-line-separator nil
+ "String that delimits tabs.")
\f
(defcustom tab-line-tab-name-function #'tab-line-tab-name-buffer
(if hscroll (nthcdr (truncate hscroll) strings) strings)
(list separator)
(when (and (eq tab-line-tabs-function #'tab-line-tabs-window-buffers)
- tab-line-new-tab-choice)
+ tab-line-new-button-show
+ tab-line-new-button)
(list tab-line-new-button)))))
(defvar tab-line-auto-hscroll)