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 15:57:26 +0100 Message-ID: <20161220145726.tnffhu5kd23ph7my@doriath.local> References: <20161220102536.3smvm7bbtuib55xu@doriath.local> <87h95yu4ze.fsf@gmail.com> 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 1482245885 2577 195.159.176.226 (20 Dec 2016 14:58:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2016 14:58:05 +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 15:58:01 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 1cJLrZ-00082v-Vz for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2016 15:57:58 +0100 Original-Received: from localhost ([::1]:51780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJLre-00033p-HJ for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2016 09:58:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJLrC-00033j-Gr for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 09:57:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJLr8-0005w5-II for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 09:57:34 -0500 Original-Received: from mail-wj0-x243.google.com ([2a00:1450:400c:c01::243]:34306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJLr8-0005vZ-Bn for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 09:57:30 -0500 Original-Received: by mail-wj0-x243.google.com with SMTP id xy5so27990763wjc.1 for ; Tue, 20 Dec 2016 06:57:30 -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=3j6YlWBj8JHz3k/9E5TxC7w/FeHJSdl1Nkf9uZu8g0U=; b=CVhShvFlj43UuTRmdsiAlMDWmHgJ1H2e3izlhQb7D5Fv7V6w9Z57xnxJlX6ddO2sKp U0EkY9Ma9/Ft3mwHgz6wYVNqoOlPljQrLzQPyruV+lapFf20V0IWMVbRbEmOuiJndEY9 AKlF9bEoiP857MnuKmwGb/JiFLk1/jajMPb3NqNSr94WDV13yRlGdzacYw7w1DW4EfVQ GcrqBDDVxnclAQuVm0Xx81klJmD3vKILLi0dKHwQ/mWa8i6s6yi4cF27onHrHRTU9GOK aW7xXhgvVXrAKoVc7+eD++B6H1cVEIB7yco3hKLS4HNih+Ptx8gIWDye2aJUsqZXy0yw lUfg== 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=3j6YlWBj8JHz3k/9E5TxC7w/FeHJSdl1Nkf9uZu8g0U=; b=BHs+egkZwG0wuQ5bKqknRlQrYIml0XjzxWiubNxsnnoHE2Dp4kjp/DmhDpywQvMoVZ f7USyzg0Mwtdi4KiXIP4iGPJfwvuqM3PL3CQlkvvo252KDKLRzehNdYS4bd0d2uDaFOJ prfumLq2toee1zh82u9fH4x1NfpFmMA5Z9KHRgngJiXH/giivEqwd/tyt8ydefLQBDnN 8WnyJRyawuO7mbSgRndzfjMM6KvAe8v8gZ/7vVazo+QrSwYW1ArqUTnWJ9DFn0bdypc6 VBkT2l5ok/WTAhwfP9QOWryuts4ttTDDba59NRX8pJ9f7eOTlYfb23AUpJBxOMgDQT3z tVVw== X-Gm-Message-State: AKaTC03n5GKofBPXx6UTJYbJgX0XbqSdiksoT/X4ad4VEaChLxmDBG/6zwy8C5+BJ0EOsg== X-Received: by 10.194.79.5 with SMTP id f5mr22301757wjx.13.1482245848747; Tue, 20 Dec 2016 06:57:28 -0800 (PST) Original-Received: from doriath (203.98.15.37.dynamic.jazztel.es. [37.15.98.203]) by smtp.gmail.com with ESMTPSA id c81sm22420831wmf.22.2016.12.20.06.57.27 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Dec 2016 06:57:27 -0800 (PST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87h95yu4ze.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c01::243 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:111986 Archived-At: 2016-12-20, 16:04 (+0300); Alex Kost escriu: > Ernest Adrogu=E9 (2016-12-20 11:25 +0100) wrote: >=20 > > Hi there, > > > > Face attributes appear to be interpreted differently in the window > > header line than in other parts of the window. For instance, if I > > evaluate > > > > (setq header-line-format > > '(:eval (propertize "abcdefghijklmnopqrstuvwxyz" > > 'face 'show-paren-match))) > > > > the text in the header line is displayed in what seems to be reverse > > video: http://i.imgur.com/BU0XmGm.png > > > > This doesn't happen if I disable the theme that I'm using (namely > > solarized, which can found here: > > https://github.com/sellout/emacs-color-theme-solarized/). Without a > > theme, background and foreground colours are not swapped, although I > > noticed that then the foreground colour property is not inherited. > > > > Any pointers on what could be causing this? >=20 > I can't reproduce this behavior. For me, it displays a usual > 'show-paren-match' face. I tried some other faces, and I also tried > with "emacs -Q", and every time I got expected colors (but I didn't try > that particular theme). >=20 > Perhaps the problem is that "emacs-color-theme-solarized" is a > so-called "color theme", not "custom theme" which is supported by > Emacs 24 and above. Did you try with any custom theme (displayed in > "M-x customize-themes")? It's a custom theme (it shows up when I do M-x customize-themes). They include a "color theme" version as well, but I'm not using it. This is a simpler test: (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. Cheers.