Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: message mode, leading colons, and fake cited text
Date: Thu, 15 Aug 2002 10:03:53 +0900	[thread overview]
Message-ID: <yotlk7mtx79i.fsf@jpl.org> (raw)
In-Reply-To: <wc365ydyo4r.fsf@eta.cis.ohio-state.edu>

Hi,

>>>>> In <wc365ydyo4r.fsf@eta.cis.ohio-state.edu>
>>>>>	Benjamin Rutt <rutt+news@cis.ohio-state.edu> wrote:

>> I've solved it in CVS.  Here's a patch for the released version
>> of Oort Gnus v0.07:

Benjamin> :( I wish your update solved it for me.  But, this line is still red.
Benjamin> :What's worse, this line's 1st character became a colon.  And this
Benjamin> :next line (this one) has the colon too, apparently this happens at
Benjamin> :fill time.  (I use auto-fill-mode in message buffers so I can keep
Benjamin> :typing and avoid hitting RET).

Did you customize the value for `message-cite-prefix-regexp'?
My change makes it possible to reflect that value to the
font-lock-keywords in the message buffer dynamically.  Since the
default value for `message-cite-prefix-regexp' contains ":", the
default behavior won't be changed.  You need to put something
like the following lines in your .gnus file:

(if (string-match "[^[]:[^]]" message-cite-prefix-regexp)
    (setq message-cite-prefix-regexp
	  (concat (substring message-cite-prefix-regexp
			     0 (1+ (match-beginning 0)))
		  (substring message-cite-prefix-regexp
			     (1- (match-end 0))))))

;; or you may use the following lines for Emacs 21 instead.
(setq message-cite-prefix-regexp
      "\\([ \t]*[-_.[:word:]]+>+\\|[ \t]*[]>»|}+]\\)+")

Otherwise, if you feel the color for those lines is too loud,
you can modify it as follows:

(set-face-foreground 'message-cited-text-face "DarkGreen")

Regards,
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



  reply	other threads:[~2002-08-15  1:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-13  7:36 Ami Fischman
2002-08-13  8:38 ` Katsumi Yamaoka
2002-08-13 18:38   ` Ami Fischman
2002-08-14  2:15     ` Katsumi Yamaoka
2002-08-14 15:57       ` Ami Fischman
2002-08-15  0:14       ` Benjamin Rutt
2002-08-15  1:03         ` Katsumi Yamaoka [this message]
2002-08-15  1:59           ` Benjamin Rutt
2002-08-15  2:26             ` Jesper Harder
2002-08-15  2:35               ` Katsumi Yamaoka
2002-08-15 10:33                 ` Katsumi Yamaoka

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=yotlk7mtx79i.fsf@jpl.org \
    --to=yamaoka@jpl.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).