popup-el
popup-el copied to clipboard
do NOT hide tab bar of tab-bar-mode when popup-menu* executeing.
Problem:
when popup-menu* is executed, popup-menu* hides tab bar when tab-bar-mode is t.
Expected:
when executing popup-menu*, do not hide tab bar if tab-bar-mode is t.
Reproduce:
(tab-bar-mode t) ;; -> show tab-bar
(require 'popup)
(popup-menu* '(a b)) ;; → hide tab-bar
Cause:
- popup-menu-read-key-sequence replaces current global-map to temp-global-map temporarily.
- temp-global-map do not have tab-bar's map.
- so, tab-bar disappears when popup-menu* executes.
Fix:
add tab-bar's map to temp-global-map same as menu-bar and tool-bar.
Environment;
Emacs 29.3 Debian GNU/Linux sid (6.7.12-amd64)