unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "João Távora" <joaotavora@gmail.com>
Cc: mohkale@kisara.moe, 71282@debbugs.gnu.org, stefankangas@gmail.com
Subject: bug#71282: 30.0.50; hl-line overlay priority has no affect
Date: Sun, 30 Jun 2024 18:34:36 +0300	[thread overview]
Message-ID: <865xtqh2b7.fsf@gnu.org> (raw)
In-Reply-To: <CALDnm52ON7V55Z8GzOR4QB1WiZPq+EtiW=u_PA0_D+T0oNd7BA@mail.gmail.com> (message from João Távora on Sun, 30 Jun 2024 16:12:55 +0100)

> From: João Távora <joaotavora@gmail.com>
> Date: Sun, 30 Jun 2024 16:12:55 +0100
> Cc: Mohsin Kaleem <mohkale@kisara.moe>, stefankangas@gmail.com, 71282@debbugs.gnu.org
> 
> On Sun, Jun 30, 2024 at 3:47 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Mohsin Kaleem <mohkale@kisara.moe>
> > > Cc: stefankangas@gmail.com, 71282@debbugs.gnu.org
> > > Date: Sun, 30 Jun 2024 14:41:13 +0100
> > >
> > > Eli Zaretskii <eliz@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.





  parent reply	other threads:[~2024-06-30 15:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-30 22:27 bug#71282: 30.0.50; hl-line overlay priority has no affect Mohsin Kaleem
2024-05-31  5:44 ` Eli Zaretskii
2024-06-30  6:10   ` Stefan Kangas
2024-06-30 11:42     ` Mohsin Kaleem
2024-06-30 12:23       ` Eli Zaretskii
2024-06-30 13:41         ` Mohsin Kaleem
2024-06-30 14:46           ` Eli Zaretskii
2024-06-30 15:12             ` João Távora
2024-06-30 15:21               ` Mohsin Kaleem
2024-06-30 15:37                 ` Eli Zaretskii
2024-06-30 15:34               ` Eli Zaretskii [this message]
2024-06-30 15:50                 ` João Távora
2024-06-30 16:37                   ` João Távora
2024-06-30 17:36                   ` Eli Zaretskii
2024-06-30 18:09                     ` João Távora
2024-07-01 12:35                     ` Mohsin Kaleem
2024-07-01 13:50                       ` João Távora
2024-06-30 15:18             ` Mohsin Kaleem
2024-06-30 17:28               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=865xtqh2b7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71282@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=mohkale@kisara.moe \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).