[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fill-paragraph ill designed

From: Andreas Röhler
Subject: Re: fill-paragraph ill designed
Date: Sat, 29 Aug 2015 21:47:05 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Am 28.08.2015 um 10:26 schrieb Tassilo Horn:
Andreas Röhler <address@hidden> 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]

Then M-q (or whatever the user has configured to be `fill-paragraph')
will call your mode-specific paragraph filling function.


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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]