From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21750: show-paren-mode erroneously highlights the left margin Date: Sun, 25 Oct 2015 20:39:48 +0200 Message-ID: <83twpedc7f.fsf@gnu.org> References: <83wpucuj2w.fsf@gnu.org> <83vb9wuicz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1445798544 20166 80.91.229.3 (25 Oct 2015 18:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Oct 2015 18:42:24 +0000 (UTC) Cc: 21750@debbugs.gnu.org To: Hinrik =?UTF-8?Q?=C3=96rn_?= =?UTF-8?Q?Sigur=C3=B0sson?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 25 19:42:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZqQF9-0007JG-55 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Oct 2015 19:42:11 +0100 Original-Received: from localhost ([::1]:49114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqQF8-0004WR-MG for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Oct 2015 14:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqQF5-0004W9-4m for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqQEz-0004ID-UH for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:42:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqQEz-0004I7-Qx for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZqQEz-0001Xe-M8 for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Oct 2015 18:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21750-submit@debbugs.gnu.org id=B21750.14457984665864 (code B ref 21750); Sun, 25 Oct 2015 18:42:01 +0000 Original-Received: (at 21750) by debbugs.gnu.org; 25 Oct 2015 18:41:06 +0000 Original-Received: from localhost ([127.0.0.1]:38185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqQE6-0001WW-0M for submit@debbugs.gnu.org; Sun, 25 Oct 2015 14:41:06 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:35835) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqQE1-0001Vp-Ku for 21750@debbugs.gnu.org; Sun, 25 Oct 2015 14:41:03 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NWS00L00GUHG600@mtaout24.012.net.il> for 21750@debbugs.gnu.org; Sun, 25 Oct 2015 20:33:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWS00A1RGV4DDC0@mtaout24.012.net.il>; Sun, 25 Oct 2015 20:33:04 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108022 Archived-At: > Date: Sun, 25 Oct 2015 01:53:34 +0200 > From: Hinrik Örn Sigurðsson > 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?