(defvar message-font-lock-keywords
(let ((content "[ \t]*\\(.+\\(\n[ \t].*\\)*\\)\n?"))
`((,(concat "^\\([Tt]o:\\)" content)
- (1 (if (message-point-in-header-p) 'message-header-name-face))
- (2 (if (message-point-in-header-p) 'message-header-to-face) nil t))
+ (1 'message-header-name-face)
+ (2 'message-header-to-face nil t))
(,(concat "^\\([GBF]?[Cc][Cc]:\\|[Rr]eply-[Tt]o:\\|"
"[Mm]ail-[Cc]opies-[Tt]o:\\|"
"[Mm]ail-[Rr]eply-[Tt]o:\\|"
"[Mm]ail-[Ff]ollowup-[Tt]o:\\)" content)
- (1 (if (message-point-in-header-p) 'message-header-name-face))
- (2 (if (message-point-in-header-p) 'message-header-cc-face) nil t))
+ (1 'message-header-name-face)
+ (2 'message-header-cc-face nil t))
(,(concat "^\\([Ss]ubject:\\)" content)
- (1 (if (message-point-in-header-p) 'message-header-name-face))
- (2 (if (message-point-in-header-p) 'message-header-subject-face) nil t))
+ (1 'message-header-name-face)
+ (2 'message-header-subject-face nil t))
(,(concat "^\\([Nn]ewsgroups:\\|Followup-[Tt]o:\\)" content)
- (1 (if (message-point-in-header-p) 'message-header-name-face))
- (2 (if (message-point-in-header-p) 'message-header-newsgroups-face)
- nil t))
+ (1 'message-header-name-face)
+ (2 'message-header-newsgroups-face nil t))
(,(concat "^\\([A-Z][^: \n\t]+:\\)" content)
- (1 (if (message-point-in-header-p) 'message-header-name-face))
- (2 (if (message-point-in-header-p) 'message-header-other-face) nil t))
- (,(concat "^\\(X-[A-Za-z0-9-]+\\|In-Reply-To\\):" content)
- (1 (if (message-point-in-header-p) 'message-header-name-face))
- (2 (if (message-point-in-header-p) 'message-header-name-face)))
+ (1 'message-header-name-face)
+ (2 'message-header-other-face nil t))
+ (,(concat "^\\(X-[A-Za-z0-9-]+:\\|In-Reply-To:\\)" content)
+ (1 'message-header-name-face)
+ (2 'message-header-name-face))
,@(if (and mail-header-separator
(not (equal mail-header-separator "")))
`((,(concat "^\\(" (regexp-quote mail-header-separator) "\\)$")