Modernise message.el face spec syntax

* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name, message-header-xheader)
(message-separator, message-cited-text, message-mml):
Use (DISPLAY . PLIST) face spec syntax as recommended in
`(elisp) Defining Faces'.  (Bug#29405)
This commit is contained in:
Basil L. Contovounesios 2017-12-15 12:20:38 +02:00 committed by Eli Zaretskii
parent b1efbe6564
commit 92b2604a7f

View file

@ -1428,12 +1428,12 @@ starting with `not' and followed by regexps."
(defface message-header-to (defface message-header-to
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "DarkOliveGreen1" :bold t)) :foreground "DarkOliveGreen1" :bold t)
(((class color) (((class color)
(background light)) (background light))
(:foreground "MidnightBlue" :bold t)) :foreground "MidnightBlue" :bold t)
(t (t
(:bold t :italic t))) :bold t :italic t))
"Face used for displaying To headers." "Face used for displaying To headers."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-to-face (define-obsolete-face-alias 'message-header-to-face
@ -1442,12 +1442,12 @@ starting with `not' and followed by regexps."
(defface message-header-cc (defface message-header-cc
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "chartreuse1" :bold t)) :foreground "chartreuse1" :bold t)
(((class color) (((class color)
(background light)) (background light))
(:foreground "MidnightBlue")) :foreground "MidnightBlue")
(t (t
(:bold t))) :bold t))
"Face used for displaying Cc headers." "Face used for displaying Cc headers."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-cc-face (define-obsolete-face-alias 'message-header-cc-face
@ -1456,12 +1456,12 @@ starting with `not' and followed by regexps."
(defface message-header-subject (defface message-header-subject
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "OliveDrab1")) :foreground "OliveDrab1")
(((class color) (((class color)
(background light)) (background light))
(:foreground "navy blue" :bold t)) :foreground "navy blue" :bold t)
(t (t
(:bold t))) :bold t))
"Face used for displaying Subject headers." "Face used for displaying Subject headers."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-subject-face (define-obsolete-face-alias 'message-header-subject-face
@ -1470,12 +1470,12 @@ starting with `not' and followed by regexps."
(defface message-header-newsgroups (defface message-header-newsgroups
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "yellow" :bold t :italic t)) :foreground "yellow" :bold t :italic t)
(((class color) (((class color)
(background light)) (background light))
(:foreground "blue4" :bold t :italic t)) :foreground "blue4" :bold t :italic t)
(t (t
(:bold t :italic t))) :bold t :italic t))
"Face used for displaying Newsgroups headers." "Face used for displaying Newsgroups headers."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-newsgroups-face (define-obsolete-face-alias 'message-header-newsgroups-face
@ -1484,12 +1484,12 @@ starting with `not' and followed by regexps."
(defface message-header-other (defface message-header-other
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "VioletRed1")) :foreground "VioletRed1")
(((class color) (((class color)
(background light)) (background light))
(:foreground "steel blue")) :foreground "steel blue")
(t (t
(:bold t :italic t))) :bold t :italic t))
"Face used for displaying other headers." "Face used for displaying other headers."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-other-face (define-obsolete-face-alias 'message-header-other-face
@ -1498,12 +1498,12 @@ starting with `not' and followed by regexps."
(defface message-header-name (defface message-header-name
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "green")) :foreground "green")
(((class color) (((class color)
(background light)) (background light))
(:foreground "cornflower blue")) :foreground "cornflower blue")
(t (t
(:bold t))) :bold t))
"Face used for displaying header names." "Face used for displaying header names."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-name-face (define-obsolete-face-alias 'message-header-name-face
@ -1512,12 +1512,12 @@ starting with `not' and followed by regexps."
(defface message-header-xheader (defface message-header-xheader
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "DeepSkyBlue1")) :foreground "DeepSkyBlue1")
(((class color) (((class color)
(background light)) (background light))
(:foreground "blue")) :foreground "blue")
(t (t
(:bold t))) :bold t))
"Face used for displaying X-Header headers." "Face used for displaying X-Header headers."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-header-xheader-face (define-obsolete-face-alias 'message-header-xheader-face
@ -1526,12 +1526,12 @@ starting with `not' and followed by regexps."
(defface message-separator (defface message-separator
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "LightSkyBlue1")) :foreground "LightSkyBlue1")
(((class color) (((class color)
(background light)) (background light))
(:foreground "brown")) :foreground "brown")
(t (t
(:bold t))) :bold t))
"Face used for displaying the separator." "Face used for displaying the separator."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-separator-face (define-obsolete-face-alias 'message-separator-face
@ -1540,12 +1540,12 @@ starting with `not' and followed by regexps."
(defface message-cited-text (defface message-cited-text
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "LightPink1")) :foreground "LightPink1")
(((class color) (((class color)
(background light)) (background light))
(:foreground "red")) :foreground "red")
(t (t
(:bold t))) :bold t))
"Face used for displaying cited text names." "Face used for displaying cited text names."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-cited-text-face (define-obsolete-face-alias 'message-cited-text-face
@ -1554,12 +1554,12 @@ starting with `not' and followed by regexps."
(defface message-mml (defface message-mml
'((((class color) '((((class color)
(background dark)) (background dark))
(:foreground "MediumSpringGreen")) :foreground "MediumSpringGreen")
(((class color) (((class color)
(background light)) (background light))
(:foreground "ForestGreen")) :foreground "ForestGreen")
(t (t
(:bold t))) :bold t))
"Face used for displaying MML." "Face used for displaying MML."
:group 'message-faces) :group 'message-faces)
(define-obsolete-face-alias 'message-mml-face (define-obsolete-face-alias 'message-mml-face