diff options
author | Juri Linkov <juri@linkov.net> | 2021-03-16 19:53:27 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2021-03-16 19:53:27 +0200 |
commit | 126ea102a542c04b007c2229b004a360544be5da (patch) | |
tree | 931b0813d7f6ef101d8bd45b316d360cd61cd72e /test/lisp/emacs-lisp/bytecomp-resources/warn-variable-set-constant.el | |
parent | c209a0f82825dacd7edeef34b31f458499307eef (diff) | |
download | emacs-126ea102a542c04b007c2229b004a360544be5da.tar.gz emacs-126ea102a542c04b007c2229b004a360544be5da.tar.bz2 emacs-126ea102a542c04b007c2229b004a360544be5da.zip |
* lisp/tab-bar.el: Simplify internal functions.
* lisp/tab-bar.el (tab-bar-tabs-set): New function.
(tab-bar-tabs): Use tab-bar--current-tab-find and tab-bar-tabs-set.
(tab-bar--tab): Use tab-bar--current-tab-find.
(tab-bar--current-tab): Remove unused line (assq 'current-tab ...)
because there is no current-tab when it's called. Remove unused arg 'frame'.
(tab-bar--current-tab-find): Simplify.
(tab-bar-move-tab-to, tab-bar-move-tab-to-frame)
(tab-bar-new-tab-to, tab-bar-close-tab)
(tab-bar-close-other-tabs, tab-bar-undo-close-tab)
(tab-switcher-delete-from-list): Use tab-bar-tabs-set
instead of set-frame-parameter.
(tab-bar-close-group-tabs): Simplify using tab-bar--current-tab-find
without arg.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-variable-set-constant.el')
0 files changed, 0 insertions, 0 deletions