From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ernest =?iso-8859-1?Q?Adrogu=E9?= Newsgroups: gmane.emacs.help Subject: Re: text displayed in the header line with wrong faces Date: Tue, 20 Dec 2016 22:14:06 +0100 Message-ID: <20161220211406.6fgcmxhnzfwkpyna@doriath.local> References: <20161220102536.3smvm7bbtuib55xu@doriath.local> <87h95yu4ze.fsf@gmail.com> <20161220145726.tnffhu5kd23ph7my@doriath.local> <83k2au30tn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1482268485 21466 195.159.176.226 (20 Dec 2016 21:14:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2016 21:14:45 +0000 (UTC) User-Agent: NeoMutt/20161126 (1.7.1) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 20 22:14:40 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJRk7-0004dM-Va for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2016 22:14:40 +0100 Original-Received: from localhost ([::1]:53487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJRkC-0002kT-00 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2016 16:14:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJRjh-0002kD-6M for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 16:14:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJRje-0006xK-1N for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 16:14:13 -0500 Original-Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJRjd-0006vu-Ro for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 16:14:09 -0500 Original-Received: by mail-wm0-x242.google.com with SMTP id g23so26839552wme.1 for ; Tue, 20 Dec 2016 13:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=p+LuIY6EvxoeAsx8Oz7oH+gT9H0m0+rpYu9jdlYpocs=; b=KsP4Pqs6RM54yDJ4s/tBuvzkpT7zwlutQiGaaKs6kABjU8tCtwxSebq+MdaPaLw/Q0 mGZsN6yWFbxGoc2WuCmihmYW5EHHhzOP0FSrd2mO7Fi9eV1zIaTyg2FPKyUr4UMqID6/ pa2kmtraVmzd7jEdAPhb9hF93OpnmsUvz12kYhSZJseZoamsRlvYwJR3sb/QXdU4lP7w cE3L5SBoegYgQQoPwk3twYR1rdo60a8/ksPZT36s1P/sBetajLfaVSskdPde21fZWtgl zbslbkiRl5skUJM/5Uk8F5X6PqRAli1GoC6U1l/eQIo17/J5AiyL/v0ZDO6WZx8wDINS ek8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=p+LuIY6EvxoeAsx8Oz7oH+gT9H0m0+rpYu9jdlYpocs=; b=DS0VdSmapgE1CULAkBvh6+FnuRMFg0jTQpN9JJ7eO2PoFFsWHpRfSIhJIoELzz3Lln 2G+AMVFHfr5Jrd9lwCC4L19fC4906OuQKg8TjhHZqApa6i+uL147GTYi4nZq9rEWdehB d3U5cSv7FXGQhMQ4HdArpYM7pnVEDzfesn3oc4nLvamNuAci/4EFsqSmrUZeLwMzxAFs jkEdq2mlHH84AqysPqUXZGB2yxnBij610cIwa205iehoByDjpnYUTgGcBjGh2YXyBI1o GuOLqTQa9a+QeNUDcRiEPH1HWFruT6Pxf3cOTUlDFjO4Yg6g5bWWhBTQP1gTGNDeKekl O8OQ== X-Gm-Message-State: AIkVDXLgxwESIJs/7o1I8a5pIH3Ulgqp6Tcv7tmBjhq4v3UcY1xjiNJcurFHCl3utBLqDg== X-Received: by 10.28.165.131 with SMTP id o125mr1644042wme.9.1482268448563; Tue, 20 Dec 2016 13:14:08 -0800 (PST) Original-Received: from doriath (203.98.15.37.dynamic.jazztel.es. [37.15.98.203]) by smtp.gmail.com with ESMTPSA id c81sm23849755wmf.22.2016.12.20.13.14.07 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Dec 2016 13:14:07 -0800 (PST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <83k2au30tn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::242 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111988 Archived-At: 2016-12-20, 20:36 (+0200); Eli Zaretskii escriu: > > Date: Tue, 20 Dec 2016 15:57:26 +0100 > > From: Ernest Adrogu=E9 > >=20 > > (let ((cyan "#2aa198") (white "#ffffff")) > > (setq header-line-format > > (propertize > > "abcdefghijklmnopqrstuvwxyz" > > 'face `(:foreground ,cyan :background ,white)))) > > =20 > > It displays cyan text on white when I select any custom theme other than > > solarized, tsdh-dark or tsdh-light (the latter two are bundled with > > Emacs, I think) and white text on cyan background when I select one of > > those. >=20 > The header-line face, as defined in faces.el, inherits from mode-line, > and mode-line has the inverse-video attribute set. When a theme > specifies both foreground and background colors for the mode-line > face, those colors specify the face completely, so the inverse-video > attribute is disabled. But the themes you mention as deviant specify > only one of the two colors, so the inverse-video attribute stays. >=20 > You can see all this if you invoke customize-face. Actually, I think that these themes simply customize the header-line face and set the inverse-video attribute. It didn't occur to me that this could matter, since the header-line face isn't used explicitly. Thanks!