diff options
author | Eli Zaretskii <eliz@gnu.org> | 2006-04-08 10:44:48 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2006-04-08 10:44:48 +0000 |
commit | b4b2135bee6bdaf6dbcfde7e1d349c51f50e339c (patch) | |
tree | f1e96897595efd8e3d60572703154b6baaaba3ec | |
parent | dbcd3ce07492595ab409fabc02fe2ee16550de5d (diff) | |
download | emacs-b4b2135bee6bdaf6dbcfde7e1d349c51f50e339c.tar.gz emacs-b4b2135bee6bdaf6dbcfde7e1d349c51f50e339c.tar.bz2 emacs-b4b2135bee6bdaf6dbcfde7e1d349c51f50e339c.zip |
(Fill Commands): fill-nobreak-predicate is now a hook.
-rw-r--r-- | man/text.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/text.texi b/man/text.texi index cf3d03af4d5..97e6aa50338 100644 --- a/man/text.texi +++ b/man/text.texi @@ -557,11 +557,11 @@ two spaces for the end of a sentence, as explained above. @xref{Sentences}. fill commands put two spaces after a colon. @vindex fill-nobreak-predicate - The variable @code{fill-nobreak-predicate} specifies additional -conditions for where line-breaking is allowed. Its value is either -@code{nil} or a Lisp function; the function is called with no + The variable @code{fill-nobreak-predicate} is a hook (an abnormal +hook, @pxref{Hooks}) specifying additional conditions where +line-breaking is not allowed. Each function is called with no arguments, with point at a place where Emacs is considering breaking -the line. If the function returns a non-@code{nil} value, then that's +the line. If a function returns a non-@code{nil} value, then that's a bad place to break the line. Two standard functions you can use are @code{fill-single-word-nobreak-p} (don't break after the first word of a sentence or before the last) and @code{fill-french-nobreak-p} (don't |