Gnus development mailing list
 help / color / mirror / Atom feed
From: Steven L Baur <steve@miranova.com>
Subject: Re: September Gnus 0.75 is released
Date: 21 Apr 1996 21:09:10 -0700	[thread overview]
Message-ID: <m2u3ycvr15.fsf@deanna.miranova.com> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 19 Apr 1996 15:56:24 -0700

>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

Lars> Steven L Baur <steve@miranova.com> 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.


  reply	other threads:[~1996-04-22  4:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-18 21:29 Lars Magne Ingebrigtsen
1996-04-19  0:57 ` Steven L Baur
1996-04-19  5:50   ` Mark Borges
1996-04-19 22:56   ` Lars Magne Ingebrigtsen
1996-04-22  4:09     ` Steven L Baur [this message]
1996-04-22 18:12       ` Lars Magne Ingebrigtsen
1996-05-01  4:33         ` Steven L Baur
1996-05-01  5:16           ` Per Abrahamsen
1996-05-01  6:18             ` Steven L Baur
1996-05-01  6:43               ` Per Abrahamsen
1996-05-01 13:30                 ` message-send (C-c C-s) (was Re: September Gnus 0.75 is released) Jack Vinson
1996-05-02 14:12                 ` September Gnus 0.75 is released Lars Magne Ingebrigtsen

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=m2u3ycvr15.fsf@deanna.miranova.com \
    --to=steve@miranova.com \
    /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).