From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6013 Path: main.gmane.org!not-for-mail From: Steven L Baur Newsgroups: gmane.emacs.gnus.general Subject: Re: September Gnus 0.75 is released Date: 21 Apr 1996 21:09:10 -0700 Sender: steve@miranova.com Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.52) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035146532 2204 80.91.224.250 (20 Oct 2002 20:42:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:42:12 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id VAA07281 for ; Sun, 21 Apr 1996 21:46:07 -0700 Original-Received: from deanna.miranova.com (steve@miranova.com [204.212.162.100]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Mon, 22 Apr 1996 06:08:49 +0200 Original-Received: (from steve@localhost) by deanna.miranova.com (8.7.5/8.6.9) id VAA06599; Sun, 21 Apr 1996 21:09:11 -0700 Original-To: ding@ifi.uio.no X-Url: http://www.miranova.com/%7Esteve/ Mail-Copies-To: never In-Reply-To: Lars Magne Ingebrigtsen's message of 19 Apr 1996 15:56:24 -0700 Original-Lines: 50 X-Mailer: September Gnus v0.77/XEmacs 19.13 Xref: main.gmane.org gmane.emacs.gnus.general:6013 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6013 >>>>> "Lars" == Lars Magne Ingebrigtsen writes: Lars> Steven L Baur writes: >> Would it be possible to also apply the usual header coloration >> functions? Lars> We have the `message-font-lock-keywords' variable that could be filled Lars> out properly, I guess... Suggestions (and patches) are welcome. O.K. Setting font-lock-keywords is evil, but message-font-lock-keywords works. (setq steves-smtp-nntp-headers '("^[A-Za-z][-0-9A-Za-z]*:")) (defun steves-article-highlight-headers () "Hook for coloring news post and mail send buffers." (setq message-font-lock-keywords steves-smtp-nntp-headers) (turn-on-font-lock)) (add-hook 'message-mode-hook 'steves-article-highlight-headers) Appears to do what I was doing before message.el. >> Either that or reorder the headers into some more logical order? Lars> That's an idea... Perhaps there should be a `message-sort-headers' Lars> function that could sort the headers over Lars> `message-header-format-alist'? Is there a simple way to do this, or Lars> do I have to write a function to do it the hard way? Well, what I really meant was the headers Gnus used to display, like To:, Cc:, Subject:, References:, In-Reply-To: (in that order) at the top. And Gcc:, Fcc: at the bottom, with custom headers and other Gnus supplied headers in between. Lars> Hm. I just wrote the damn thing. `sort-subr' is nice. I don't know about ``hard way''. I like very much the kind of header highlighting done already when reading articles. All I'm really interested in doing is applying the same function to a message prior to editing. The vital headers like Newsgroups:, To:, Cc:, and Subject: I want to have in separate, visually standing out colors. I'll settle for just getting them to appear the same way they do when I'm reading an article. -- steve@miranova.com baur Unsolicited commercial e-mail will be proofread for $250/hour. Andrea Seastrand: For your vote on the Telecom bill, I will vote for anyone except you in November.