From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: fill-paragraph / fill region in latex (auctex) buffer
Date: Thu, 24 Nov 2005 23:20:32 -0500 [thread overview]
Message-ID: <87psop8itg.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 4385a37f$0$41149$14726298@news.sunsite.dk
> instead of the simple `fill-region-as-paragraph' call (in the else
> part of the above form) currently in `fill-region' and making `end' a
> marker. But it would probably make more sense to make
> `fill-region-as-paragraph' aware of comments.
I don't think so: fill-region-as-paragraph is really the function that fills
"one paragraph". So to handle comments, the most important part is to
change fill-region so as to recognize that blocks of comments are paragraphs
on their own. I.e. it's the forward-paragraph and backward-paragraph
functionality that needs to be made aware of comments (and strings,
incidentally). Tho I'm unsure about the M-{ and M-} part: fill.el should
maybe have its notion of paragraphs.
> So for the problem at hand the OP should simply use the functions
> provided by AUCTeX instead of `fill-region'. Of course it would be
> nice if the specialized function(s) could be hooked into `fill-region'
> because then the menu entry `Edit --> Fill' would work as well.
I'd rather add something like fill-paragraph-forward-function should could
then be used both by fill-region and by fill-paragraph.
Stefan
next prev parent reply other threads:[~2005-11-25 4:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.15243.1131996330.20277.help-gnu-emacs@gnu.org>
2005-11-22 20:17 ` fill-paragraph / fill region in latex (auctex) buffer Stefan Monnier
2005-11-22 21:14 ` Ralf Angeli
2005-11-23 7:20 ` Stefan Monnier
2005-11-24 11:27 ` Ralf Angeli
2005-11-25 4:20 ` Stefan Monnier [this message]
2005-11-14 19:25 David Reitter
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87psop8itg.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).