[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch to change just-one-space

From: Stephen J. Turnbull
Subject: Re: Patch to change just-one-space
Date: Sat, 15 Aug 2009 02:10:10 +0900

Deniz Dogan writes:

 > > It seems to me that a more flexible and discoverable (and to you
 > > equivalent, up to default keybindings) idea would be to define
 > > `paragraph-join' and `paragraph-break', and bind the former to M-SPC.
 > Sounds interesting. So basically we would make `paragraph-join' the
 > same as "my" version of `just-one-space'? Or did you have something
 > different in mind?

Well, the idea would be that paragraph-join might eat the "moral
equivalent of whitespace, both horizontal and vertical" in the current
mode.  Eg, as Stefan describes in Lisp mode, paragraph-join at `-!-'
would DTRT:

;; This is a comment.
;; -!-
;; This is a closely related comment.

In something like html-mode, it might go so far as to eat "</p><p>",
which I would find highly objectionable if `just-one-space' did it.
It could (maybe) eat ^L too, something else that I would definitely be
upset if `just-one-space' did it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]