From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: Re: texinfo-fill-workaround.el -- no break after @: when filling Date: Tue, 30 Aug 2005 09:21:04 +1000 Message-ID: <87fyssfhy7.fsf@zip.com.au> References: <873bq8d7yd.fsf-monnier+gnu.emacs.sources@gnu.org> <87iry0jb0h.fsf-monnier+gnu.emacs.sources@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1125358364 32456 80.91.229.2 (29 Aug 2005 23:32:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 23:32:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 01:32:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9t6L-0000Hk-Iy for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2005 01:31:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9tAR-0007fX-Rh for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2005 19:35:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9t0x-0004r7-Gu for emacs-devel@gnu.org; Mon, 29 Aug 2005 19:26:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9t0u-0004qF-Dy for emacs-devel@gnu.org; Mon, 29 Aug 2005 19:26:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9t0t-0004nD-O1 for emacs-devel@gnu.org; Mon, 29 Aug 2005 19:26:03 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E9syz-0003A8-MD for emacs-devel@gnu.org; Mon, 29 Aug 2005 19:24:06 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j7TNLehV016251 for ; Tue, 30 Aug 2005 09:21:40 +1000 Original-Received: from localhost (ppp24E5.dyn.pacific.net.au [61.8.36.229]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j7TNLdFH026395 for ; Tue, 30 Aug 2005 09:21:40 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1E9sw5-0000gn-00; Tue, 30 Aug 2005 09:21:05 +1000 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42489 Archived-At: --=-=-= Stefan Monnier 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 * text.texi (Fill Commands): fill-nobreak-predicate is now a hook. --=-=-= Content-Disposition: attachment; filename=text.texi.nobreak.diff 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{?}). --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--