unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* lisp/mail/rmail.el rmail-highlight definition
@ 2008-01-30 20:58 pod
  2008-01-31 10:46 ` martin rudalics
  0 siblings, 1 reply; 2+ messages in thread
From: pod @ 2008-01-30 20:58 UTC (permalink / raw)
  To: bug-gnu-emacs

I don't think the definition for the rmail-highlight face in emacs 22.1 is
correct.

The face properties shown by M-x describe-face RET rmail-highlight are all
unspecified and indeed M-x list-faces-display shows the rmail-highlight
faces as completely plain whereas the highlight face has a darkolivegreen
(according to M-x describe-face RET highlight) background.

The rmail-highlight face definition appears to be the same in CVS

<http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/mail/rmail.el?revision=1.445&view=markup>

as it is in the lisp/mail/rmail.el from the distributed emacs 22.1
tarball, namely:

    (defface rmail-highlight
      '((t :default highlight))
      "Face to use for highlighting the most important header fields."
      :group 'rmail-headers
      :version "22.1")

I think the intent is to derive a face from the highlight face, however
the value used above appears to be incorrect on two counts given the
description from M-x describe-function defface; there is no :default ATTR
and ATTS should be (ATTR VALUE ATTR VALUE ...).

I believe the correct value to assign is ((t (:inherit hightlight))).
Indeed if I assign this using

(custom-set-faces '(rmail-highlight ((t (:inherit highlight)))))

I observe the content of From: and Subject: fields in my rmail buffers in
a face indistinguishable from the highlight face (i.e. with a
darkolivegreen background) whereas without this setting they appear in
what looks like the default face.

Thank you for your time.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-31 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 20:58 lisp/mail/rmail.el rmail-highlight definition pod
2008-01-31 10:46 ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).