* auto-fill-mode breaks one line into two short and one long
@ 2004-06-19 20:10 Dan Jacobson
2004-06-21 17:42 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2004-06-19 20:10 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: auto-fill-mode breaks one line into two short and one long
2004-06-19 20:10 auto-fill-mode breaks one line into two short and one long Dan Jacobson
@ 2004-06-21 17:42 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-06-21 17:42 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-21 17:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-19 20:10 auto-fill-mode breaks one line into two short and one long Dan Jacobson
2004-06-21 17:42 ` Kevin Rodgers
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).