(Margins): fill-nobreak-predicate can be one function.
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Feb 2005 11:02:29 +0000 (11:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Feb 2005 11:02:29 +0000 (11:02 +0000)
lispref/text.texi

index 0e636d4..2237bc0 100644 (file)
@@ -1598,11 +1598,13 @@ becomes buffer-local when set in any fashion.
 @end defvar
 
 @defvar fill-nobreak-predicate
-This variable gives major modes a way to specify not to break a line at
-certain places.  Its value should be a function.  This function is
-called during filling, with no arguments and with point located at the
-place where a break is being considered.  If the function returns
-non-@code{nil}, then the line won't be broken there.
+This variable gives major modes a way to specify not to break a line
+at certain places.  Its value should be a list of functions, but a
+single function is also supported for compatibility.  Whenever filling
+considers breaking the line at a certain place in the buffer, it calls
+each of these functions with no arguments and with point located at
+that place.  If any of the functions returns non-@code{nil}, then the
+line won't be broken there.
 @end defvar
 
 @node Adaptive Fill