From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: auto-fill-mode breaks one line into two short and one long Date: Mon, 21 Jun 2004 11:42:51 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40D71E1B.2070908@yahoo.com> References: <87k6y3e2bf.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1087839810 19278 80.91.224.253 (21 Jun 2004 17:43:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2004 17:43:30 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 21 19:43:26 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcSpJ-0003aL-00 for ; Mon, 21 Jun 2004 19:43:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcSqZ-0001Da-Jx for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jun 2004 13:44:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcSqB-0000zw-Id for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2004 13:44:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcSq9-0000yq-J2 for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2004 13:44:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcSq9-0000yl-Fg for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2004 13:44:17 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BcSop-0004O9-Us for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2004 13:42:56 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BcSol-0000S5-00 for ; Mon, 21 Jun 2004 19:42:54 +0200 Original-Received: from 170.207.1.200 ([170.207.1.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jun 2004 19:42:51 +0200 Original-Received: from ihs_4664 by 170.207.1.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jun 2004 19:42:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 170.207.1.200 User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8248 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8248 Dan Jacobson wrote: > Gentlemen, the auto-fill-mode algorithm is all wrong. Put the cursor > at the end of > > Looking at e.g. http://localhost:8080/info/url?http://www.alan.gale.clara.co.uk/favourites.htm > > and hit SPC. One gets > > Looking at > e.g. > http://localhost:8080/info/url?http://www.alan.gale.clara.co.uk/favourites.htm > > whereas one should get > > Looking at e.g. > http://localhost:8080/info/url?http://www.alan.gale.clara.co.uk/favourites.htm I agree that is annoying, but according to this comment in do-auto-fill it is intentional: ;; If this is after period and a single space, ;; move back once more--we don't want to break ;; the line there and make it look like a ;; sentence end. You can work around it by setting sentence-end-double-space to nil when auto-filling: (defadvice do-auto-fill (around sentence-end-double-space activate) "Temporarily bind `sentence-end-double-space' to nil, to allow line breaks after abbreviations etc." (let ((sentence-end-double-space nil)) ad-do-it)) -- Kevin Rodgers