* text displayed in the header line with wrong faces
@ 2016-12-20 10:25 Ernest Adrogué
2016-12-20 13:04 ` Alex Kost
0 siblings, 1 reply; 5+ messages in thread
From: Ernest Adrogué @ 2016-12-20 10:25 UTC (permalink / raw)
To: help-gnu-emacs
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?
Cheers.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text displayed in the header line with wrong faces
2016-12-20 10:25 text displayed in the header line with wrong faces Ernest Adrogué
@ 2016-12-20 13:04 ` Alex Kost
2016-12-20 14:57 ` Ernest Adrogué
0 siblings, 1 reply; 5+ messages in thread
From: Alex Kost @ 2016-12-20 13:04 UTC (permalink / raw)
To: help-gnu-emacs
Ernest Adrogué (2016-12-20 11:25 +0100) wrote:
> 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?
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).
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")?
There is <https://github.com/bbatsov/solarized-emacs> which is probably
similar (I don't know though as I don't use it) but it is "custom".
--
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text displayed in the header line with wrong faces
2016-12-20 13:04 ` Alex Kost
@ 2016-12-20 14:57 ` Ernest Adrogué
2016-12-20 18:36 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Ernest Adrogué @ 2016-12-20 14:57 UTC (permalink / raw)
To: help-gnu-emacs
2016-12-20, 16:04 (+0300); Alex Kost escriu:
> Ernest Adrogué (2016-12-20 11:25 +0100) wrote:
>
> > 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?
>
> 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).
>
> 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))))
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text displayed in the header line with wrong faces
2016-12-20 14:57 ` Ernest Adrogué
@ 2016-12-20 18:36 ` Eli Zaretskii
2016-12-20 21:14 ` Ernest Adrogué
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2016-12-20 18:36 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Tue, 20 Dec 2016 15:57:26 +0100
> From: Ernest Adrogué <nfdisco@gmail.com>
>
> (let ((cyan "#2aa198") (white "#ffffff"))
> (setq header-line-format
> (propertize
> "abcdefghijklmnopqrstuvwxyz"
> 'face `(:foreground ,cyan :background ,white))))
>
> 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.
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.
You can see all this if you invoke customize-face.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text displayed in the header line with wrong faces
2016-12-20 18:36 ` Eli Zaretskii
@ 2016-12-20 21:14 ` Ernest Adrogué
0 siblings, 0 replies; 5+ messages in thread
From: Ernest Adrogué @ 2016-12-20 21:14 UTC (permalink / raw)
To: help-gnu-emacs
2016-12-20, 20:36 (+0200); Eli Zaretskii escriu:
> > Date: Tue, 20 Dec 2016 15:57:26 +0100
> > From: Ernest Adrogué <nfdisco@gmail.com>
> >
> > (let ((cyan "#2aa198") (white "#ffffff"))
> > (setq header-line-format
> > (propertize
> > "abcdefghijklmnopqrstuvwxyz"
> > 'face `(:foreground ,cyan :background ,white))))
> >
> > 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.
>
> 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.
>
> 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!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-12-20 21:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-20 10:25 text displayed in the header line with wrong faces Ernest Adrogué
2016-12-20 13:04 ` Alex Kost
2016-12-20 14:57 ` Ernest Adrogué
2016-12-20 18:36 ` Eli Zaretskii
2016-12-20 21:14 ` Ernest Adrogué
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.