From: Chris Brierley <brierley@pobox.com>
Subject: Adaptive fill in message-mode is weird
Date: 08 Oct 1999 01:47:20 -0400 [thread overview]
Message-ID: <wkemf6xv2v.fsf@colltech.com> (raw)
Hi all,
I'm not really sure if this is really a pgnus question (because
of message-mode), or a general adaptive-fill-mode question, so I
figured I'd start here first.
I use the following attribution style:
---+ John Doe <jdoe@fard.com> wrote:
|
| Some stuff that John wrote.
|
| More stuff that John wrote. Blah, blah, blah, blah, blah,
| blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
| blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
| blah, blah.
Now, my understanding of adaptive-fill-mode is pretty tenous, but
here's the deal. If I leave my draft in message-mode, put point
on the first line of text that John wrote ( | Some ...) and hit
M-q, all of the text is filled as if it was one giant paragraph
of normal text. However, if I put the draft in mail-mode and do
the same thing, the message is filled appropriately.
Now, this makes sense to me, because investigating the values of
adaptive-fill-first-line-regexp and adaptive-fill-regexp shows
that they are different in each mode:
message-mode:
adaptive-fill-first-line-regexp's value is
"[ ]*[-a-z0-9A-Z]*\\(>[ ]*\\)+[ ]*\\|\\`[ ]*\\'"
adaptive-fill-regexp's value is
"[ ]*[-a-z0-9A-Z]*\\(>[ ]*\\)+[ ]*\\|[ ]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)*"
mail-mode:
adaptive-fill-first-line-regexp's value is
"\\`[ ]*\\'\\|[ ]*[-a-z0-9A-Z]*>+[ ]*"
adaptive-fill-regexp's value is
"[ ]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)+\\|[ ]*[-a-z0-9A-Z]*>+[ ]*\\|[ ]*"
But, the wierd thing is that if I put the draft in message-mode
and *change* adaptive-fill-first-line-regexp and
adaptive-fill-regexp to be the same strings as mail-mode, filling
still *doesn't* work right. It works the same way it did with
default message-mode values for those variables.
So, this has me completely flummoxed. How can it be that if I
make those variables the same as in mail-mode, filling still
works differently.
Anyone have any ideas on why this isn't working for me? Or,
perhaps does anyone have adaptive-fill regexp's that will fill my
example properly?
Thanks very much!
next reply other threads:[~1999-10-08 5:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-08 5:47 Chris Brierley [this message]
1999-10-08 7:32 ` Kai Großjohann
1999-10-08 16:01 ` Chris Brierley
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=wkemf6xv2v.fsf@colltech.com \
--to=brierley@pobox.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).