GNU bug report logs - #76408
29.4; read-key always returns only tab-line for click in tab-line

Previous Next

Package: emacs;

Reported by: Jared Finder <jared <at> finder.org>

Date: Tue, 18 Feb 2025 22:36:02 UTC

Severity: normal

Found in version 29.4

Fixed in versions 30.1.50, 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jared Finder <jared <at> finder.org>
To: 76408 <at> debbugs.gnu.org
Subject: bug#76408: 29.4; read-key always returns only tab-line for click in tab-line
Date: Tue, 18 Feb 2025 17:35:13 -0500
read-key only reports the symbol tab-line for clicks in the tab-line,
instead of the mouse event.

To reproduce:

emacs -q -nw
M-x xterm-mouse-mode
Show the tab-line, either global-tab-line-mode or 
global-window-tool-bar-mode
Then just eval (read-key)

Clicks in the mode-line or header-line return the underlying mouse
event, but clicks in tab-line-only return the symbol tab-line.

I believe the following change to read-key fixes this:

@@ -3074,7 +3074,7 @@
                   (catch 'read-key (read-key-sequence-vector prompt nil 
t)))
                  (key (aref keys 0)))
             (if (and (> (length keys) 1)
-                     (memq key '(mode-line header-line
+                     (memq key '(mode-line header-line tab-line
                                  left-fringe right-fringe)))
                 (aref keys 1)
               key)))

  -- MJF




This bug report was last modified 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.