From: Glenn Morris <rgm@gnu.org>
To: rms@gnu.org
Cc: 10276@debbugs.gnu.org
Subject: bug#10276: 24.0.92; Filling in Mail mode
Date: Wed, 11 Jan 2012 19:36:41 -0500 [thread overview]
Message-ID: <91ipkhkb8m.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <E1RZmx3-0004we-Os@fencepost.gnu.org> (Richard Stallman's message of "Sun, 11 Dec 2011 12:12:37 -0500")
Richard Stallman wrote:
> Put the following in a buffer in Mail mode, go to after `1970.', and
> type M-q. It fills the following paragraph.
>
> ======================================================================
> I was never a regular PBS viewer since I have not had a TV set since
> 1970.
>
> this is a
> test
> ======================================================================
This happens because with point at the start of the "1970." line,
forward-paragraph skip to after "test". This does not happen in
text-mode. It happens in mail-mode because the "1970." line happens to
match paragraph-separate, specifically the element:
(?[0-9]+[.)]+$
Off the top of my head, I don't know what this element is supposed to be
for. It seems to have been added by you in 1998:
http://cvs.savannah.gnu.org/viewvc/emacs/lisp/mail/sendmail.el?root=emacs&r1=1.199&r2=1.200&pathrev=MAIN
1998-07-24 Richard Stallman <rms AT psilocin.ai.mit.edu>
* mail/sendmail.el (mail-mode): Add the citation regexp
to adaptive-fill-regexp after the usual contents.
But modify the usual contents not to match whitespace alone;
match that again last.
Add that citation regexp to paragraph-start and
paragraph-separate too.
(Message mode does not have such an element.)
next prev parent reply other threads:[~2012-01-12 0:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-11 17:12 bug#10276: 24.0.92; Filling in Mail mode Richard Stallman
2012-01-12 0:36 ` Glenn Morris [this message]
2012-01-12 1:40 ` Glenn Morris
2012-01-12 2:06 ` Glenn Morris
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=91ipkhkb8m.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=10276@debbugs.gnu.org \
--cc=rms@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.