--- Begin Message ---
Subject: |
Long mode-line-compact breaks tab-line tabs |
Date: |
Mon, 01 Nov 2021 21:59:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
0. emacs -Q
1. (setq mode-line-compact 'long)
2. (global-tab-line-mode)
3. Visit more buffers in the same window
4. Click on a non-first tab on the tab-line
5. It always selects the first tab only
The click event returns a string that contains all tabs,
whereas with the default value of mode-line-compact
the event correctly contains only one tab's string.
I don't know why mode-line-compact affects the tab-line,
but maybe it should have a condition to not apply to the tab-line?
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#51558: Long mode-line-compact breaks tab-line tabs |
Date: |
Wed, 03 Nov 2021 14:59:18 +0200 |
> From: Juri Linkov <juri@linkov.net>
> Cc: 51558@debbugs.gnu.org
> Date: Wed, 03 Nov 2021 10:45:15 +0200
>
> >> The click event returns a string that contains all tabs,
> >> whereas with the default value of mode-line-compact
> >> the event correctly contains only one tab's string.
> >>
> >> I don't know why mode-line-compact affects the tab-line,
> >> but maybe it should have a condition to not apply to the tab-line?
> >
> > I think it's indeed a bug that mode-line-compact affects anything but
> > the mode line. Does the patch below give good results?
>
> I confirm the fix, there are no more problems with it.
Thanks, I installed on the emacs-28 branch, and am closing the bug.
--- End Message ---