emacs-devel
[Top][All Lists]
Advanced

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

Re: Patch to change just-one-space


From: Juri Linkov
Subject: Re: Patch to change just-one-space
Date: Fri, 14 Aug 2009 02:19:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

> I have long wanted to change the behavior of just-one-space to not
> only delete spaces and tab characters, but newline characters as well.
> Attached is the patch for this change.
>
> I don't think that this is such a controversial modification and I
> believe very few user macros will break. If I'm wrong, let me know!

No, it's a controversial change.  Just imagine typing M-SPC at the end
of the paragraph.  It will join the current paragraph with the next
paragraph.  IOW, it will work as two commands `just-one-space' and
`delete-blank-lines' combined.  I don't think users will appreciate
such change.

Also we can't guarantee that some code won't break with your change.
For instance, try doing the same in the command `delete-horizontal-space'
(i.e. adding \n to `skip-chars-...') and see how it breaks
paragraph-filling commands.  The same bad effect is possible
for `just-one-space'.

However, your proposed change could be useful when its additional
functionality is requested intentionally, e.g. with a prefix key:
`C-u M-SPC'.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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