unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gabriel <gabriel376@hotmail.com>
To: 59527@debbugs.gnu.org
Subject: bug#59527: 29.0.50; Face issues in show-paren context overlay
Date: Thu, 24 Nov 2022 08:21:59 -0300	[thread overview]
Message-ID: <SJ0PR06MB8609EEF5F5BA0D2A8BB013048B0F9@SJ0PR06MB8609.namprd06.prod.outlook.com> (raw)
In-Reply-To: <87zgcgd65y.fsf@gnu.org> (Tassilo Horn's message of "Thu, 24 Nov 2022 10:55:15 +0100")

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]


Hi Tassilo,

Thank you for the quick fix.

>>> Problem 1: the overlay context does not have font-lock, since
>>> font-lock was not applied to the previous area that contains the
>>> context.
>
> I now ensure the region is font-locked before taking the
> buffer-substring(s).
>

I confirm that problem #1 is fixed.

>>> Problem 2: the overlay context will be displayed with the same
>>> background color as the top-left line of the window (yellow, in this
>>> case, because of whitespace-mode).
>
> I now set the overlay priority to (the very high) show-paren-priority
> which seems to do the trick.

I can still reproduce the problem #2, where the overlay context use the
same face of the top-left line.  I suspect the issue is related to the
overlay face, not with overlay priority (but we can keep your fix that
set the overlay priority).

A simpler recipe to reproduce the issue is to make sure the first
character of the top-left line is a comment, so the overlay context will
be displayed in that face (font-lock-comment-face).  See the attached
images, where I put a comment ("/* EXAMPLE COMMENT */") in the top-left
line and the context overlay was displayed in that face.


[-- Attachment #2: comment.png --]
[-- Type: image/png, Size: 128324 bytes --]

[-- Attachment #3: wrong face.png --]
[-- Type: image/png, Size: 128719 bytes --]

[-- Attachment #4: Type: text/plain, Size: 13 bytes --]


---
Gabriel

      reply	other threads:[~2022-11-24 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24  0:22 bug#59527: 29.0.50; Face issues in show-paren context overlay Gabriel
2022-11-24  7:10 ` Eli Zaretskii
2022-11-24  7:18   ` Tassilo Horn
2022-11-24  9:55   ` Tassilo Horn
2022-11-24 11:21     ` Gabriel [this message]

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=SJ0PR06MB8609EEF5F5BA0D2A8BB013048B0F9@SJ0PR06MB8609.namprd06.prod.outlook.com \
    --to=gabriel376@hotmail.com \
    --cc=59527@debbugs.gnu.org \
    /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).