emacs-devel
[Top][All Lists]
Advanced

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

Re: fill-paragraph ill designed


From: Tassilo Horn
Subject: Re: fill-paragraph ill designed
Date: Fri, 28 Aug 2015 10:26:44 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

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]
              #'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



reply via email to

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