]> git.eshelyaron.com Git - emacs.git/commit
* lisp/tab-bar.el: In tab switching allow absolute and relative args.
authorJuri Linkov <juri@linkov.net>
Sat, 5 Oct 2019 21:50:19 +0000 (00:50 +0300)
committerJuri Linkov <juri@linkov.net>
Sat, 5 Oct 2019 21:50:19 +0000 (00:50 +0300)
commite3fcf1f38bb5900a595f441a13cf83b034701790
tree2a1da791a1f11226fb727cbe81e50326a16c1fcd
parent080e8084e83f70f9add7b42d2f24b03db931fcf9
* lisp/tab-bar.el: In tab switching allow absolute and relative args.

* lisp/tab-bar.el (tab-bar-tab-hints): New defcustom.
(tab-bar-make-keymap-1): Use tab-bar-tab-hints.
(tab-bar--tab, tab-bar--current-tab, tab-bar--current-tab-index)
(tab-bar--tab-index, tab-bar--tab-index-by-name): New internal functions.
(tab-bar-select-tab): Use arg as absolute position of tab to select.
(tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab): Use arg
as offset relative to the current tab.
(tab-bar-switch-to-tab): New command.
(tab-bar-new-tab): Simplify by using cl-pushnew.
(tab-bar-close-current-tab): Remove (the current tab is closed
by nil arg of tab-bar-close-tab).
(tab-bar-close-tab): Use arg as absolute position of tab to close.
(tab-bar-close-tab-by-name): New command.
lisp/tab-bar.el