]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-line.el (tab-line-new-tab): Use tty menus when supported.
authorJared Finder <jared@finder.org>
Tue, 8 Dec 2020 06:44:32 +0000 (22:44 -0800)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 Jan 2021 09:31:47 +0000 (11:31 +0200)
lisp/tab-line.el

index 2726947a4c2159541dc94a9eacf778ea00b4cd3d..9209f2d46ec050892dca7e2cd0a72ed895831ebf 100644 (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))))))