Subject: 29.4; read-key always returns only tab-line for click in tab-line

From: Jared Finder <[email-masked]>
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