From: Kevin Ryde <user42@zip.com.au>
To: ding@gnus.org
Subject: message-header-xheader unused, maybe
Date: Fri, 18 May 2007 11:25:11 +1000 [thread overview]
Message-ID: <87r6perki0.fsf@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
In message.el, the message-header-xheader face seems to be unused.
Is that accidental, or deliberate?
Incidentally, some of the colours in message mode with "dark background"
seem a bit dark to me, like DarkGreen for message-header-name. Do dark
users find them ok? I use dark, but only on the console, where in fact
"blue3" in message-separator comes out pretty much unreadable -- but
perhaps that's the fault of "tty-color"s mapping.
2007-05-17 Kevin Ryde <user42@zip.com.au>
* message.el (message-font-lock-keywords): Use message-header-xheader
face for "X-Foo", its apparent intended purpose. Move "X-" pattern
ahead of the anything pattern, to get it recognised.
(Note the diff is a bit zany, it's actually a swap of the two forms, not
changes to the patterns.)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: message.el.xheader-face.diff --]
[-- Type: text/x-diff, Size: 881 bytes --]
--- message.el 14 May 2007 08:08:50 +1000 7.212
+++ message.el 17 May 2007 15:18:13 +1000
@@ -1444,13 +1444,13 @@
(1 'message-header-name)
(2 'message-header-newsgroups nil t))
(,(message-font-lock-make-header-matcher
- (concat "^\\([A-Z][^: \n\t]+:\\)" content))
+ (concat "^\\(X-[A-Za-z0-9-]+:\\|In-Reply-To:\\)" content))
(1 'message-header-name)
- (2 'message-header-other nil t))
+ (2 'message-header-xheader))
(,(message-font-lock-make-header-matcher
- (concat "^\\(X-[A-Za-z0-9-]+:\\|In-Reply-To:\\)" content))
+ (concat "^\\([A-Z][^: \n\t]+:\\)" content))
(1 'message-header-name)
- (2 'message-header-name))
+ (2 'message-header-other nil t))
,@(if (and mail-header-separator
(not (equal mail-header-separator "")))
`((,(concat "^\\(" (regexp-quote mail-header-separator) "\\)$")
next reply other threads:[~2007-05-18 1:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-18 1:25 Kevin Ryde [this message]
2007-05-22 10:56 ` Katsumi Yamaoka
2007-05-22 12:55 ` Greg Troxel
2007-05-25 9:31 ` Katsumi Yamaoka
2007-05-26 1:37 ` Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r6perki0.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).