* Faces of modeline and Gnus headers do not obey global setting any more
@ 2021-12-03 10:03 Torsten Bronger
2021-12-03 10:42 ` Robert Pluim
2021-12-03 18:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 2 replies; 6+ messages in thread
From: Torsten Bronger @ 2021-12-03 10:03 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 590 bytes --]
Hallöchen!
I just upgraded to current Git Emacs (commit c66eb52453) from
October Emacs (commit 241574375d). Now, the modeline and the Gnus
email headers in the article view have a different font from the
rest. In particular, a .emacs only containing
(set-face-attribute 'default nil :font "Ubuntu Mono" :height 140)
used to change the modeline. However with current Git Emacs, it
does not affect it.
I assume this is a deliberate change, therefore I did not file a bug
report but ask here how to handle this best?
Thanks!
Tschö,
Torsten.
--
Torsten Bronger
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4913 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Faces of modeline and Gnus headers do not obey global setting any more
2021-12-03 10:03 Faces of modeline and Gnus headers do not obey global setting any more Torsten Bronger
@ 2021-12-03 10:42 ` Robert Pluim
2021-12-03 12:50 ` Torsten Bronger
2021-12-03 18:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 6+ messages in thread
From: Robert Pluim @ 2021-12-03 10:42 UTC (permalink / raw)
To: help-gnu-emacs
>>>>> On Fri, 03 Dec 2021 11:03:59 +0100, Torsten Bronger <bronger@physik.rwth-aachen.de> said:
Torsten> Hallöchen!
Torsten> I just upgraded to current Git Emacs (commit c66eb52453) from
Torsten> October Emacs (commit 241574375d). Now, the modeline and the Gnus
Torsten> email headers in the article view have a different font from the
Torsten> rest. In particular, a .emacs only containing
Torsten> (set-face-attribute 'default nil :font "Ubuntu Mono" :height 140)
Torsten> used to change the modeline. However with current Git Emacs, it
Torsten> does not affect it.
Torsten> I assume this is a deliberate change, therefore I did not file a bug
Torsten> report but ask here how to handle this best?
From etc/NEWS
+++
** New face 'mode-line-active'.
This inherits from the 'mode-line' face, but is the face actually used
on the mode lines (along with 'mode-line-inactive').
---
** The mode line now uses a proportional font by default.
To get the old monospaced mode line back, customize the
'mode-line-active' and 'mode-line-inactive' faces not to inherit from
the 'variable-pitch' face, or add this to your "~/.emacs":
(set-face-attribute 'mode-line-active nil :inherit 'mode-line)
(set-face-attribute 'mode-line-inactive nil :inherit 'mode-line)
---
*** Gnus now uses a variable-pitch font in the headers by default.
To get the monospace font back, you can put something like the
following in your .gnus file:
(set-face-attribute 'gnus-header nil :inherit 'unspecified)
Robert
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Faces of modeline and Gnus headers do not obey global setting any more
2021-12-03 10:42 ` Robert Pluim
@ 2021-12-03 12:50 ` Torsten Bronger
2021-12-03 13:39 ` Arash Esbati
0 siblings, 1 reply; 6+ messages in thread
From: Torsten Bronger @ 2021-12-03 12:50 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
Hallöchen!
Robert Pluim writes:
> [...]
>
> From etc/NEWS
>
> +++
> ** New face 'mode-line-active'.
> This inherits from the 'mode-line' face, but is the face actually used
> on the mode lines (along with 'mode-line-inactive').
>
> ---
> ** The mode line now uses a proportional font by default.
> To get the old monospaced mode line back, customize the
> 'mode-line-active' and 'mode-line-inactive' faces not to inherit from
> the 'variable-pitch' face, or add this to your "~/.emacs":
>
> (set-face-attribute 'mode-line-active nil :inherit 'mode-line)
> (set-face-attribute 'mode-line-inactive nil :inherit 'mode-line)
Thank you, this worked! (Additionally, I had to revert the default
colour for the inactive mode line.)
> ---
> *** Gnus now uses a variable-pitch font in the headers by default.
> To get the monospace font back, you can put something like the
> following in your .gnus file:
>
> (set-face-attribute 'gnus-header nil :inherit 'unspecified)
For me, this didn’t work out-of-the-box. Apparently, the colour
“gnus-header” is defined rather late in the Gnus startup. I had to
write:
(add-hook 'gnus-setup-news-hook (lambda () (set-face-attribute 'gnus-header nil :inherit 'unspecified)))
Even the gnus-started-hook was not “late” enough.
Tschö,
Torsten.
--
Torsten Bronger
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4913 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Faces of modeline and Gnus headers do not obey global setting any more
2021-12-03 12:50 ` Torsten Bronger
@ 2021-12-03 13:39 ` Arash Esbati
2021-12-03 14:34 ` Torsten Bronger
0 siblings, 1 reply; 6+ messages in thread
From: Arash Esbati @ 2021-12-03 13:39 UTC (permalink / raw)
To: help-gnu-emacs
Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> Robert Pluim writes:
>
>> From etc/NEWS
>>
>> +++
>> ** New face 'mode-line-active'.
>> This inherits from the 'mode-line' face, but is the face actually used
>> on the mode lines (along with 'mode-line-inactive').
>>
>> ---
>> ** The mode line now uses a proportional font by default.
>> To get the old monospaced mode line back, customize the
>> 'mode-line-active' and 'mode-line-inactive' faces not to inherit from
>> the 'variable-pitch' face, or add this to your "~/.emacs":
>>
>> (set-face-attribute 'mode-line-active nil :inherit 'mode-line)
>> (set-face-attribute 'mode-line-inactive nil :inherit 'mode-line)
>
> Thank you, this worked! (Additionally, I had to revert the default
> colour for the inactive mode line.)
This single line worked for me:
(set-face-attribute 'mode-line nil :inherit 'default)
>> *** Gnus now uses a variable-pitch font in the headers by default.
>> To get the monospace font back, you can put something like the
>> following in your .gnus file:
>>
>> (set-face-attribute 'gnus-header nil :inherit 'unspecified)
>
> For me, this didn’t work out-of-the-box. Apparently, the colour
> “gnus-header” is defined rather late in the Gnus startup. I had to
> write:
>
> (add-hook 'gnus-setup-news-hook (lambda () (set-face-attribute 'gnus-header nil :inherit 'unspecified)))
>
> Even the gnus-started-hook was not “late” enough.
The face gnus-header is defined in gnus-art.el, hence I added this to my
.gnus:
(with-eval-after-load "gnus-art"
(set-face-attribute 'gnus-header nil :inherit 'unspecified))
Best, Arash
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Faces of modeline and Gnus headers do not obey global setting any more
2021-12-03 13:39 ` Arash Esbati
@ 2021-12-03 14:34 ` Torsten Bronger
0 siblings, 0 replies; 6+ messages in thread
From: Torsten Bronger @ 2021-12-03 14:34 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
Hallöchen!
Arash Esbati writes:
> [...]
>
> This single line worked for me:
>
> (set-face-attribute 'mode-line nil :inherit 'default)
>
> [...]
>
> The face gnus-header is defined in gnus-art.el, hence I added this to my
> .gnus:
>
> (with-eval-after-load "gnus-art"
> (set-face-attribute 'gnus-header nil :inherit 'unspecified))
Thank you, this works also for me and is certainly the
least-invasive change you can get.
Tschö,
Torsten.
--
Torsten Bronger
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4913 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Faces of modeline and Gnus headers do not obey global setting any more
2021-12-03 10:03 Faces of modeline and Gnus headers do not obey global setting any more Torsten Bronger
2021-12-03 10:42 ` Robert Pluim
@ 2021-12-03 18:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 0 replies; 6+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-12-03 18:20 UTC (permalink / raw)
To: help-gnu-emacs
Torsten Bronger wrote:
> (set-face-attribute 'default nil :font "Ubuntu Mono" :height 140)
>
> used to change the modeline. However with current Git Emacs,
> it does not affect it.
To change the mode line? But you don't mention a/any mode line
face ... they are
mode-line
mode-line-buffer-id
mode-line-emphasis
mode-line-highlight
mode-line-inactive
(BTW it seems they are "inverted" or whatever that property is
called (?) so to for example get white text the _background_
is set to white ...)
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-12-03 18:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 10:03 Faces of modeline and Gnus headers do not obey global setting any more Torsten Bronger
2021-12-03 10:42 ` Robert Pluim
2021-12-03 12:50 ` Torsten Bronger
2021-12-03 13:39 ` Arash Esbati
2021-12-03 14:34 ` Torsten Bronger
2021-12-03 18:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).