all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jester@panix.com (Jesse Sheidlower)
To: help-gnu-emacs@gnu.org
Subject: Re: mail-mode: colors in multiply-quoted lines
Date: Mon, 7 Feb 2011 19:32:48 +0000 (UTC)	[thread overview]
Message-ID: <iiphd0$i5f$1@reader1.panix.com> (raw)
In-Reply-To: jwv62szyg5c.fsf-monnier+gnu.emacs.help@gnu.org

In article <jwv62szyg5c.fsf-monnier+gnu.emacs.help@gnu.org>,
Stefan Monnier  <monnier@iro.umontreal.ca> wrote:
>> I did play around with both modes, and there's a difference in the
>> paragraph filling that's annoying in message-mode. If I have an indented
>> section, as for blockquoting:
>
>>   Something like this, where I might go on for a while with material
>>   from some other source that I want to set off
>
>> In mail-mode, filling this is fine, it will keep the spaces
>> between the paragraphs, keep the indentation and
>> reflow to my fill-column length. But in message-mode, it removes
>> the spaces between the paragraphs and indents the _second_ line
>> much farther, giving a complete mess.
>
>Hmm... I just tried it and indeed the refill doesn't make any sense.
>Seems like a plain bug, please report it via M-x report-emacs-bug.

Done: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7987

Doesn't seem as if there's that much interest in fixing this; or at
least, no one has replied....

>>> To get this kind of multiple-quoting highlighting, you could do
>>> something like:
>>> 
>>> (add-hook 'message-mode-hook
>>> (lambda ()
>>> (font-lock-add-keywords nil
>>> '(("^[ \t]*>[ \t\f]*>.*$" (0 'foo-face)))))
>>> 
>>> where `foo-face' is the face you'd like to use for such quoting.
>
>> Thanks. If the other problems could be addressed, adding hooks would be
>> a perfectly acceptable way to deal with this.
>
>Not sure what other problems you're thinking of here.  Or are you
>talking about message-mode problems?  If so, just replace mail-mode-hook
>for message-mode-hook and that should work for mail-mode.

Well, yes--I meant that if those refill problems in message-mode were
fixed, adding hooks would be an acceptable way of dealing with the
multiple-quoting highlighting. For the moment post-mode is solving this
problem more or less satisfactorily, but I might switch to mail-mode
(with hooks for the quoting) just to stay with something that's core
Emacs.

Thank you.


  reply	other threads:[~2011-02-07 19:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 14:03 mail-mode: colors in multiply-quoted lines Jesse Sheidlower
2011-01-31 17:45 ` Stefan Monnier
2011-02-03 11:35   ` Jesse Sheidlower
2011-02-04 15:30     ` Stefan Monnier
2011-02-07 19:32       ` Jesse Sheidlower [this message]
2011-02-08  4:09         ` Stefan Monnier
2011-02-12 18:49   ` Reiner Steib
2011-02-24 15:28   ` E.

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='iiphd0$i5f$1@reader1.panix.com' \
    --to=jester@panix.com \
    --cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.