GNU bug report logs - #76394
mouse-face property not working in tab-bar

Previous Next

Package: emacs;

Reported by: Ship Mints <shipmints <at> gmail.com>

Date: Tue, 18 Feb 2025 15:05:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Ship Mints <shipmints <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 76394 <at> debbugs.gnu.org
Subject: bug#76394: mouse-face property not working in tab-bar
Date: Tue, 4 Mar 2025 08:30:59 -0500
[Message part 1 (text/plain, inline)]
On Tue, Mar 4, 2025 at 6:04 AM Ship Mints <shipmints <at> gmail.com> wrote:

> On Tue, Mar 4, 2025 at 2:13 AM Juri Linkov <juri <at> linkov.net> wrote:
>
>> > Are you reacting to that now the button is no longer sharing the face of
>> > the main part of the tab?  I prefer it outside the main caption, it
>> offers
>> > easier visual differentiation.
>>
>> Now the close button is not part of the tab :-(
>>
>
> I'll play with it more and see what I can come up with that satisfies us
> both.
>

Given that text properties don't nest, I matched the faces and use separate
mouse-face properties for each component so they could be highlighted
separately.  Look at the attached screenshots.  You still might not like
it.  I also handled the case where the close button might be text only vs.
icon so it works for both.

[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[Message part 2 (text/html, inline)]
[image.png (image/png, inline)]
[image.png (image/png, inline)]
[image.png (image/png, inline)]
[image.png (image/png, inline)]

This bug report was last modified 101 days ago.

Previous Next


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