[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-fill-mode breaks one line into two short and one long
From: |
Kevin Rodgers |
Subject: |
Re: auto-fill-mode breaks one line into two short and one long |
Date: |
Mon, 21 Jun 2004 11:42:51 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
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