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: Sun, 25 Oct 2015 20:39:48 +0200 [thread overview]
Message-ID: <83twpedc7f.fsf@gnu.org> (raw)
In-Reply-To: <CAA1iZccFF6LRxAbvLkwofYwOuhn-adPt5yZO_UKO+6E9t=Ps0g@mail.gmail.com>
> Date: Sun, 25 Oct 2015 01:53:34 +0200
> From: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
> Cc: 21750@debbugs.gnu.org
>
> > You can work around this in this case if you modify your face
> > customization as follows:
> >
> > (custom-set-faces
> > '(linum ((t (:foreground "black" :background "white" :weight bold)))))
> >
> > IOW, don't let the 'linum' face inherit the background color from the
> > surrounding text.
>
> Unfortunately that doesn't work in my case.
By "don't work" what exactly do you mean? Do you still see the
greenish background of the show-paren face on the line numbers? Or do
you see something else?
> The desired background color is pure black (#000000). However both
> "black" and "#000000" result in Emacs choosing the 1st color of the
> terminal's 16-color palette, even when running in 256-color mode.
That's a different issue, but I think it, too, can be solved, see
below.
(Btw, I wonder why you use a black foreground for this face if your
background is also black. What am I missing here?)
> Though pure black is my terminal's default background color (which
> is independent of the palette), it is not present in the 16-color
> palette.
That's strange: are you saying that a 16-color xterm doesn't have
"black" among the colors it supports? I don't think I've ever seen
that; perhaps the settings for xterm on your system deliberately
define "black" as something whose RGB value is not #000000?
> So there's no way of explicitly specifying this background color in
> Emacs unless I change my terminal's color palette, which would affect
> the appearance of other terminal programs.
What happens if you specify the 'linum' face to inherit the background
from your 'default' face, like this:
(custom-set-faces
'(linum ((t (:inherit default :foreground "black" :weight bold)))))
Does this produce good results?
next prev parent reply other threads:[~2015-10-25 18:39 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
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 [this message]
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=83twpedc7f.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.