unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Gabriel <gabriel376@hotmail.com>, 59527@debbugs.gnu.org
Subject: bug#59527: 29.0.50; Face issues in show-paren context overlay
Date: Thu, 24 Nov 2022 10:55:15 +0100	[thread overview]
Message-ID: <87zgcgd65y.fsf@gnu.org> (raw)
In-Reply-To: <83edtsyght.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

Hi Gabriel & Eli,

>> (progn
>>     ;; enable overlay context in show-paren
>>     (setopt show-paren-context-when-offscreen 'overlay)

Note that the issue was also present with t (minibuffer message) or the
child-frame version.

The issue is hopefully fixed with 005efce764.  Please report back.

>> 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).

>> 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.

Bye,
Tassilo





  parent reply	other threads:[~2022-11-24  9:55 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 [this message]
2022-11-24 11:21     ` Gabriel

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=87zgcgd65y.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=59527@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=gabriel376@hotmail.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).