From: Eli Zaretskii <eliz@gnu.org>
To: "Hinrik Örn Sigurðsson" <hinrik.sig@gmail.com>
Cc: 21750@debbugs.gnu.org
Subject: bug#21750: show-paren-mode erroneously highlights the left margin
Date: Sat, 24 Oct 2015 23:07:03 +0300 [thread overview]
Message-ID: <83wpucuj2w.fsf@gnu.org> (raw)
In-Reply-To: <CAA1iZce9j=mQXmLGGjk+Rk8a4A7GX5JamQrHKPT_HvsHuV6fiA@mail.gmail.com>
> Date: Sat, 24 Oct 2015 19:28:24 +0200
> From: Hinrik Örn Sigurðsson
> <hinrik.sig@gmail.com>
>
> Hi there. I discovered that under certain conditions, show-paren-mode
> will highlight the entire left margin of the window when one of the
> parentheses is located at the beginning of a line. If you do "M-x
> eval-buffer" on the following code, it will reproduce the issue in
> emacs -Q (in both the terminal and GUI):
>
> (linum-mode)
> (custom-set-faces
> '(linum ((t (:foreground "black" :weight bold)))))
> (show-paren-mode)
>
> It happens when linum-mode (or nlinum-mode) is active, but only if the
> 'linum face has been customized. Attached is a screenshot
> demonstrating the overzealous highlighting.
I think this is a side effect of the general feature whereby an
overlay string "inherits" the face of the surrounding buffer text.
It doesn't matter whether the overlay string is displayed in the
window's display margin or in the text area.
I can understand how this could be unexpected in this particular case,
and might look like a bug, but it's actually the display engine
functioning as designed. Resetting the face of the overlay string
back to the default might disrupt lots of existing code.
next prev parent reply other threads:[~2015-10-24 20:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-24 17:28 bug#21750: show-paren-mode erroneously highlights the left margin Hinrik Örn Sigurðsson
2015-10-24 20:07 ` Eli Zaretskii [this message]
2015-10-24 20:22 ` Eli Zaretskii
2015-10-24 21:54 ` Stephen Berman
2015-10-25 18:37 ` Eli Zaretskii
2015-10-25 21:33 ` Stephen Berman
2016-03-19 19:07 ` Eli Zaretskii
2015-10-24 23:53 ` Hinrik Örn Sigurðsson
2015-10-25 18:39 ` Eli Zaretskii
2015-10-26 13:28 ` Hinrik Örn Sigurðsson
2015-10-27 23:28 ` Johan Bockgård
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wpucuj2w.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=21750@debbugs.gnu.org \
--cc=hinrik.sig@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.