emacs-devel
[Top][All Lists]
Advanced

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

Re: fill-paragraph ill designed


From: Stefan Monnier
Subject: Re: fill-paragraph ill designed
Date: Tue, 25 Aug 2015 10:53:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> `LaTeX-fill-paragraph'.  In contrast to the normal `fill-paragraph', it
> ensures that verbatim macros will never be wrapped, e.g., \verb|foo bar|
> will always stay on one line which is very important.  A wrapped
> verbatim macro is an error.

Isn't that what fill-nobreak-predicate is for?

> So now I'm curious, too.  What's the right way for a mode to define its
> own filling rules?

For fill-region?  There isn't any that can cover all known cases like
fill-paragraph-function does for fill-paragraph :-(


        Stefan



reply via email to

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