On Wed, Nov 14, 2001 at 03:33:36PM +0530, Prahlad Vaidyanathan <[EMAIL PROTECTED]> wrote:
> On Tue, 13 Nov 2001 Daniel <[EMAIL PROTECTED]> spoke thusly:
[...]
> > set quote_regexp="^([ ?]*([|:}#]|>{1,3} |[A-Z]{2,3}>))+"

The "?" should really be "\t" here.  Probably the default should be
changed to have another backslash, so mutt prints out a useful value.

> But this doesn't quote the other regular stuff (lines beginning with
> '>'). So, I've reverted to Suresh's solution for the time being.

So if you expect people to quote stuff with '>' with no trailing space,
you cannot actually make this work right with just quote_regexp, because
to get the '>>>' case right, you have to make sure that it doesn't have
another '>' afterwards, which you can do, but that means that the first
letter of the line will be matched, so different lines with that same
actual quoting prefix will be colored differently.

However, changing the "smileys" variable should do what you need.
Namely:

set quote_regexp="^([ \t]*([>|:}#]|[A-Z]{2,3}>))+"
set smileys="(>From )|(>>>>)|(:[-^]?[][)(><}{|/DP])"

smileys was put there for exactly the reason of countering false
positive quote matches, and it looks like it works just right here.

-Daniel

-- 
Daniel E. Eisenbud
[EMAIL PROTECTED]

"We should go forth on the shortest walk perchance, in the spirit of
undying adventure, never to return,--prepared to send back our embalmed
hearts only as relics to our desolate kingdoms."
                                        --Henry David Thoreau, "Walking"

Reply via email to