mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lisp/tab-bar.el (tab-bar--define-keys): Fix global-mode-string (bug#49215)
This commit is contained in:
parent
19f2f26994
commit
8b49e99504
1 changed files with 6 additions and 9 deletions
|
|
@ -138,15 +138,12 @@ Possible modifier keys are `control', `meta', `shift', `hyper', `super' and
|
|||
(when (and (memq 'tab-bar-format-global tab-bar-format)
|
||||
(member '(global-mode-string ("" global-mode-string " "))
|
||||
mode-line-misc-info))
|
||||
(setq mode-line-misc-info
|
||||
(append '(global-mode-string
|
||||
("" (:eval (if (and tab-bar-mode
|
||||
(memq 'tab-bar-format-global
|
||||
tab-bar-format))
|
||||
"" global-mode-string))
|
||||
" "))
|
||||
(remove '(global-mode-string ("" global-mode-string " "))
|
||||
mode-line-misc-info)))))
|
||||
(setf (alist-get 'global-mode-string mode-line-misc-info)
|
||||
'(("" (:eval (if (and tab-bar-mode
|
||||
(memq 'tab-bar-format-global
|
||||
tab-bar-format))
|
||||
"" global-mode-string))
|
||||
" ")))))
|
||||
|
||||
(defun tab-bar--undefine-keys ()
|
||||
"Uninstall key bindings previously bound by `tab-bar--define-keys'."
|
||||
|
|
|
|||
Loading…
Reference in a new issue