From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Cc: Tassilo Horn <tsdh@gnu.org>, Richard Stallman <rms@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: fill-paragraph ill designed
Date: Sat, 29 Aug 2015 21:47:05 +0200 [thread overview]
Message-ID: <55E20C39.2070809@online.de> (raw)
In-Reply-To: <87oahr95tn.fsf@gnu.org>
Am 28.08.2015 um 10:26 schrieb Tassilo Horn:
> Andreas Röhler <andreas.roehler@online.de> writes:
>
>> IMHO fill-region stuff doesn't belong into at all.
>>
>> Paragraph and region are independent notions - both with its own ideas
>> of beginning and end. Let's keep them separated.
> Well, then the solution is easy for you. In your mode's map, remap
> `fill-paragraph' to `your-mode-fill-paragraph' instead of defining it as
> `fill-paragraph-function', e.g.,
>
> (define-key your-mode-map [remap fill-paragraph]
> #'your-mode-fill-paragraph)
>
> Then M-q (or whatever the user has configured to be `fill-paragraph')
> will call your mode-specific paragraph filling function.
>
> Bye,
> Tassilo
>
>
Hmm, it's not about my modes.
Suggest the following design of fill-paragraph
(if fill-paragraph-function
use it
if not:
(determine beg/end of paragraph by forward-...)
(fill-region beg end)
That's all.
next prev parent reply other threads:[~2015-08-29 19:47 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 8:24 fill-paragraph ill designed Andreas Röhler
2015-08-25 9:05 ` Tassilo Horn
2015-08-25 9:50 ` Andreas Röhler
2015-08-25 12:18 ` Tassilo Horn
2015-08-25 14:53 ` Stefan Monnier
2015-08-26 7:15 ` Tassilo Horn
2015-08-25 14:51 ` Stefan Monnier
2015-08-25 22:14 ` Richard Stallman
2015-08-26 6:30 ` Andreas Röhler
2015-08-26 7:08 ` Tassilo Horn
2015-08-26 12:22 ` Andreas Röhler
2015-08-26 12:40 ` Tassilo Horn
2015-08-26 16:45 ` Andreas Röhler
2015-08-26 17:03 ` Tassilo Horn
2015-08-27 16:35 ` Stefan Monnier
2015-08-27 17:48 ` Andreas Röhler
2015-08-28 6:30 ` Tassilo Horn
2015-08-28 6:41 ` Andreas Röhler
2015-08-28 8:26 ` Tassilo Horn
2015-08-29 19:47 ` Andreas Röhler [this message]
2015-08-30 7:30 ` Andreas Röhler
2015-08-31 1:21 ` Stefan Monnier
2015-08-28 16:27 ` Stefan Monnier
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=55E20C39.2070809@online.de \
--to=andreas.roehler@online.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
--cc=tsdh@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.