changeset 59945:e568af229081

(Margins): fill-nobreak-predicate can be one function.
author Richard M. Stallman <rms@gnu.org>
date Sun, 06 Feb 2005 11:02:29 +0000
parents b58bba262639
children e966a5990649
files lispref/text.texi
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/text.texi	Sun Feb 06 10:58:01 2005 +0000
+++ b/lispref/text.texi	Sun Feb 06 11:02:29 2005 +0000
@@ -1598,11 +1598,13 @@
 @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