GNU bug report logs -
#39115
26.3; eww consecutive links look like one link with mouse-over
Previous Next
Reported by: ynyaaa <at> gmail.com
Date: Mon, 13 Jan 2020 15:17:02 UTC
Severity: normal
Tags: fixed
Found in version 26.3
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 39115 <at> debbugs.gnu.org (full text, mbox):
On Wed, 22 Jan 2020 18:31:21 +0200 Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lars Ingebrigtsen <larsi <at> gnus.org>
>> Date: Wed, 22 Jan 2020 16:16:05 +0100
>> Cc: 39115 <at> debbugs.gnu.org
>>
>> I don't know how to fix it, though. Is there a way to make two
>> consecutive mouse-face regions not light up at the same time when the
>> mouse pointer is over a part of one of the regions?
>
> Not without changes to C-level code, no. It currently traverses the
> glyphs looking for the first one that doesn't have the mouse-face, so
> if two stretches of text one after the other have that face, it won't
> notice.
That appears to be so only if the respective face values of the
mouse-face properties have the same name; if the face names are
different, even if one inherits from the other so they are visually
indistinguishable, then each propertized string gets highlighted
independently when the mouse pointer hovers over it, e.g. here:
(insert (propertize "one" 'mouse-face 'highlight)
(propertize "two" 'mouse-face 'header-line-highlight)
(propertize "three" 'mouse-face 'highlight) ".")
I don't know if it's easy to make e.g. buttons take advantage of this so
you can have consecutive buttons or links with independent mouse
highlighting.
Steve Berman
This bug report was last modified 5 years and 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.