From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55441 Path: main.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-header-face-alist overriding other faces ? Date: Wed, 31 Dec 2003 09:38:34 +0100 Organization: GNU Rox ! Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1072859941 8535 80.91.224.253 (31 Dec 2003 08:39:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2003 08:39:01 +0000 (UTC) Original-X-From: ding-owner+M3981@lists.math.uh.edu Wed Dec 31 09:38:55 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AbbsV-00056c-00 for ; Wed, 31 Dec 2003 09:38:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Abbs7-00057a-00; Wed, 31 Dec 2003 02:38:31 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Abbrz-00057U-00 for ding@lists.math.uh.edu; Wed, 31 Dec 2003 02:38:23 -0600 Original-Received: from smtp.gnu-rox.org (rms.gnu-rox.org [213.41.134.247]) by justine.libertine.org (Postfix) with ESMTP id 05C463A0055 for ; Wed, 31 Dec 2003 02:38:22 -0600 (CST) Original-Received: from totoz.gnu-rox.org.gnu-rox.org (totoz.gnu-rox.org [10.0.0.3]) by smtp.gnu-rox.org (Postfix) with ESMTP id 831A53E68F for ; Wed, 31 Dec 2003 09:46:01 +0100 (CET) Original-To: ding@gnus.org X-Whatever: no X-Url-GnusFr: http://www.gnusfr.org X-Url-EmacsFr: http://www.emacsfr.org X-In-No-Sense: Nonsense X-Home-Page: http://www.gnu-rox.org/~zedek/cgi-bin/wiki.pl X-Gpg-Key-ID: 1E028EA5 X-Gpg-Fingerprint: FDB0 EE1F 33E5 8C22 5E3E 96E7 6900 CA9B 1E02 8EA5 X-Gpg-Affinity: Will accept encrypted message for GNUpg X-Face: 63TbQAY?C>dKDtNNr7 (Lars Magne Ingebrigtsen's message of "Wed, 31 Dec 2003 02:42:47 +0100") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55441 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55441 --=-=-= On 31 Dec 2003, Lars Magne Ingebrigtsen said: > Xavier Maillard writes: > >> It seems to me that 'gnus-header-face-alist' prevents other faces to >> be displayed as they are defined. >> >> For example if I set 'gnus-header-face-alist' to highlight 'From', >> 'To' and 'Subject' headers, then all the other headers are displayed >> with a default face. I don't like this behavior *at all* since I want >> all my header faces to be honored as defined. > > I don't quite follow you. Defined where by what? Ok. Let's say I have this as my g-h-f-a variable: (setq gnus-header-face-alist's value is (("From" nil gnus-header-from-face) ("Newsgroups:.*," nil gnus-header-newsgroups-face) ("" gnus-header-name-face gnus-header-content-face))) This would render my gnus-article with those Faces and it will show me the different part of the headers using those faces. Here only From and Newsgroups headers will be rendered with custom faces. The rest will use the faces defined in the "" part. Now let's imagine I also have something like this: (set-face-foreground 'gnus-header-subject-face "rosy brown") (set-face-bold-p 'gnus-header-subject-face t) With this I can expect Gnus to display the "Subject" header with rosy brown color and the text should be bold. Here is the problem, the subject part won't be displayed using the face gnus-header-subject-face but ones in the "" part of g-h-f-a. I suspect that it is not the expected behavior and so I was asking to have a slightly different one. That is to say respects the g-h-f-a variable and also the possibly defined other faces. In fact I was thinking to use g-h-f-a to add more stuff to be hilighted (for example adding new faces to display X- headers). But AFAIK it won't be possible with the current implementation. I hope you will understand now. The current workaround I am using now is to add face definitions with hooking (using gnus-article-prepare-hook). That way I can use either gnus-header-face-alist own face definitions and the default one with face-spec-set. Maybe this is the way to go normally but as I am not sure... zeDek -- Xavier Maillard 7 rue Jeanne Jugan, 51100 Reims, France phone: +33 3 26 77 02 21, mobile: +33 6 62 59 68 62 email: zedek@gnu-rox.org --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/8osNaQDKmx4CjqURArgDAJ9AplxLl/at2CrlVZV477m1m5AXlACaAv7A 4qzGwb2ej1HR4tJOdVgo7rE= =8nkg -----END PGP SIGNATURE----- --=-=-=--