1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-15 17:00:26 +00:00

* lisp/tab-line.el (tab-line-new-tab): Use tty menus when supported.

This commit is contained in:
Jared Finder 2020-12-07 22:44:32 -08:00 committed by Eli Zaretskii
parent bb652f68fd
commit 0e2e1caa0b

View File

@ -651,7 +651,9 @@ corresponding to the switched buffer."
(if (functionp tab-line-new-tab-choice)
(funcall tab-line-new-tab-choice)
(let ((tab-line-tabs-buffer-groups mouse-buffer-menu-mode-groups))
(if (and (listp mouse-event) window-system) ; (display-popup-menus-p)
(if (and (listp mouse-event)
(display-popup-menus-p)
(not tty-menu-open-use-tmm))
(mouse-buffer-menu mouse-event) ; like (buffer-menu-open)
;; tty menu doesn't support mouse clicks, so use tmm
(tmm-prompt (mouse-buffer-menu-keymap))))))