Stefan Monnier <[EMAIL PROTECTED]> writes (in gnu-emacs-sources):
>
> I'd point out that fill-nobreak-predicate is a hook in recent
> versions of Emacs

I notice the manual still only says nil or a function.  Perhaps
something like the following (new text for ease of reading, diff
below),


   The variable `fill-nobreak-predicate' is a hook (an abnormal hook,
*note Hooks::) specifying additional conditions where line-breaking is
not allowed.  Each function is called with no arguments and should
return a non-`nil' value if point is not a good place to break the
line.  Two standard functions you can use are
`fill-single-word-nobreak-p' (don't break after the first word of a
sentence or before the last) and `fill-french-nobreak-p' (don't break
after `(' or before `)', `:' or `?').


2005-08-27  Kevin Ryde  <[EMAIL PROTECTED]>

        * text.texi (Fill Commands): fill-nobreak-predicate is now a hook.

Index: text.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/man/text.texi,v
retrieving revision 1.57
diff -u -c -r1.57 text.texi
cvs server: conflicting specifications of output style
*** text.texi   15 Aug 2005 01:47:46 -0000      1.57
--- text.texi   29 Aug 2005 23:18:40 -0000
***************
*** 577,587 ****
  @code{t} to tell the sentence commands that a period is not necessary.
  
  @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
! arguments, and if it returns a [EMAIL PROTECTED] value, then point is not
! a good 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
  break after @samp{(} or before @samp{)}, @samp{:} or @samp{?}).
--- 577,587 ----
  @code{t} to tell the sentence commands that a period is not necessary.
  
  @vindex fill-nobreak-predicate
!   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 and should return a [EMAIL PROTECTED] value if point is not a
! good 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
  break after @samp{(} or before @samp{)}, @samp{:} or @samp{?}).
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to