* Re: texinfo-fill-workaround.el -- no break after @: when filling [not found] ` <87iry0jb0h.fsf-monnier+gnu.emacs.sources@gnu.org> @ 2005-08-29 23:21 ` Kevin Ryde 2005-08-30 10:30 ` Richard M. Stallman 0 siblings, 1 reply; 3+ messages in thread From: Kevin Ryde @ 2005-08-29 23:21 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 919 bytes --] Stefan Monnier <monnier@iro.umontreal.ca> 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 <user42@zip.com.au> * text.texi (Fill Commands): fill-nobreak-predicate is now a hook. [-- Attachment #2: text.texi.nobreak.diff --] [-- Type: text/plain, Size: 1708 bytes --] 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 non-@code{nil} 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 non-@code{nil} 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{?}). [-- Attachment #3: Type: text/plain, Size: 142 bytes --] _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: texinfo-fill-workaround.el -- no break after @: when filling 2005-08-29 23:21 ` texinfo-fill-workaround.el -- no break after @: when filling Kevin Ryde @ 2005-08-30 10:30 ` Richard M. Stallman 2006-04-06 23:36 ` Kevin Ryde 0 siblings, 1 reply; 3+ messages in thread From: Richard M. Stallman @ 2005-08-30 10:30 UTC (permalink / raw) Cc: emacs-devel > 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), Your patch looks good. Would someone please install it? But it suggests that maybe we should also rename the variable to fill-nobreak-predicates. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: texinfo-fill-workaround.el -- no break after @: when filling 2005-08-30 10:30 ` Richard M. Stallman @ 2006-04-06 23:36 ` Kevin Ryde 0 siblings, 0 replies; 3+ messages in thread From: Kevin Ryde @ 2006-04-06 23:36 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 982 bytes --] "Richard M. Stallman" <rms@gnu.org> writes: > > Your patch looks good. Would someone please install it? This was from a while ago, it never got installed. Re-diffed below for the current cvs and with the wording tweaked a bit (for less change actually): 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, with point at a place where Emacs is considering breaking the line. If a function returns a non-`nil' value, then that's a bad 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 `?'). 2006-04-07 Kevin Ryde <user42@zip.com.au> * text.texi (Fill Commands): fill-nobreak-predicate is now a hook. [-- Attachment #2: text.texi.nobreak2.diff --] [-- Type: text/plain, Size: 1445 bytes --] *** text.texi.~1.63.~ 2006-04-07 09:29:56.000000000 +1000 --- text.texi 2006-04-07 09:32:20.000000000 +1000 *************** *** 557,567 **** 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 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 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 --- 557,567 ---- fill commands put two spaces after a colon. @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, with point at a place where Emacs is considering breaking ! 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 [-- Attachment #3: Type: text/plain, Size: 142 bytes --] _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-06 23:36 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <mailman.1041.1121820984.20277.gnu-emacs-sources@gnu.org> [not found] ` <873bq8d7yd.fsf-monnier+gnu.emacs.sources@gnu.org> [not found] ` <mailman.1541.1122257048.20277.gnu-emacs-sources@gnu.org> [not found] ` <87iry0jb0h.fsf-monnier+gnu.emacs.sources@gnu.org> 2005-08-29 23:21 ` texinfo-fill-workaround.el -- no break after @: when filling Kevin Ryde 2005-08-30 10:30 ` Richard M. Stallman 2006-04-06 23:36 ` Kevin Ryde
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).