Subject: Re: bug#76408: 29.4; read-key always returns only tab-line for click in tab-line

From: Eli Zaretskii <[email-masked]>
Date: Wed, 19 Feb 2025 18:00:10 +0200

> Cc: [email-masked]
> From: Juri Linkov <[email-masked]>
> Date: Wed, 19 Feb 2025 09:42:06 +0200
> 
> close 76408 31.0.50
> thanks
> 
> > 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 @@ read-key
> > -                     (memq key '(mode-line header-line
> > +                     (memq key '(mode-line header-line tab-line
> 
> Thanks for the fix.  Pushed to master (I guess it's too late for release?)

It's okay to backport this to the release branch.

Thanks.