[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a93d164: * lisp/tab-bar.el (tab-bar-history-buttons-show): Remove
From: |
Juri Linkov |
Subject: |
master a93d164: * lisp/tab-bar.el (tab-bar-history-buttons-show): Remove defcustom. |
Date: |
Fri, 13 Aug 2021 03:32:10 -0400 (EDT) |
branch: master
commit a93d164ff3c495584847cc7d252a27e1ae7ee64f
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* lisp/tab-bar.el (tab-bar-history-buttons-show): Remove defcustom.
(tab-bar-format-history): Don't use this recently added variable
because now it's possible to customize the option 'tab-bar-format'
to remove 'tab-bar-format-history' from it that gives the same result.
---
lisp/tab-bar.el | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 7459e1b..d16711b 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -398,16 +398,6 @@ If nil, don't show it at all."
(defvar tab-bar-forward-button " > "
"Button for going forward in tab history.")
-(defcustom tab-bar-history-buttons-show t
- "Show back and forward buttons when `tab-bar-history-mode' is enabled."
- :type 'boolean
- :initialize 'custom-initialize-default
- :set (lambda (sym val)
- (set-default sym val)
- (force-mode-line-update))
- :group 'tab-bar
- :version "28.1")
-
(defcustom tab-bar-tab-hints nil
"Show absolute numbers on tabs in the tab bar before the tab name.
This helps to select the tab by its number using `tab-bar-select-tab'
@@ -590,7 +580,10 @@ the mode line. Replacing `tab-bar-format-tabs' with
:version "28.1")
(defun tab-bar-format-history ()
- (when (and tab-bar-history-mode tab-bar-history-buttons-show)
+ "Show back and forward buttons when `tab-bar-history-mode' is enabled.
+You can hide these buttons by customizing `tab-bar-format' and removing
+`tab-bar-format-history' from it."
+ (when tab-bar-history-mode
`((sep-history-back menu-item ,(tab-bar-separator) ignore)
(history-back
menu-item ,tab-bar-back-button tab-bar-history-back
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master a93d164: * lisp/tab-bar.el (tab-bar-history-buttons-show): Remove defcustom.,
Juri Linkov <=