GNU bug report logs -
#71282
30.0.50; hl-line overlay priority has no affect
Previous Next
Reported by: Mohsin Kaleem <mohkale <at> kisara.moe>
Date: Thu, 30 May 2024 22:37:01 UTC
Severity: normal
Tags: notabug
Found in version 30.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: João Távora <joaotavora <at> gmail.com>
> Date: Sun, 30 Jun 2024 16:12:55 +0100
> Cc: Mohsin Kaleem <mohkale <at> kisara.moe>, stefankangas <at> gmail.com, 71282 <at> debbugs.gnu.org
>
> On Sun, Jun 30, 2024 at 3:47 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> >
> > > From: Mohsin Kaleem <mohkale <at> kisara.moe>
> > > Cc: stefankangas <at> gmail.com, 71282 <at> debbugs.gnu.org
> > > Date: Sun, 30 Jun 2024 14:41:13 +0100
> > >
> > > Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > I don't think it's a "problem". Overlay strings have their own faces,
> > and those override the faces of buffer text.
>
> If I understand the scenario correctly, I agree with Moshin that this
> is a more general issue. There should be some way for overlays
> used by a package X to easily combine with an existing an
> existing background color, even if that background color is mandated
> by some hl-current-line extension Y. This mechanism shouldn't rely
> on making X aware of Y.
The mechanism exists: find the face of the buffer text, and use it (or
some of its attributes, like background color) in determining the face
of the overlay string.
In some cases, Emacs does this merging automatically, but this is not
one of those cases. (I think in this case if hl-line uses text
properties instead of overlays, this will happen automatically. But I
didn't try that, and I might be missing something in this complex
issue.)
> Maybe if the implementation of Y were moved to C display core, like
> display-line-numbers-mode. Or maybe not, I haven't looked into it
> (and I don't plan to, sorry).
That's unrelated. The order of merging face information is documented
in the ELisp manual, and changing it is out of the question, because
it worked like that for many years, and any change in it is bound to
break something out there.
This bug report was last modified 323 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.