[Top][All Lists]
[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/
- Re: Patch to change just-one-space, (continued)
- Re: Patch to change just-one-space, Xah Lee, 2009/08/13
- Re: Patch to change just-one-space, Deniz Dogan, 2009/08/14
- capitalize-dwim (was: Patch to change just-one-space), Stefan Monnier, 2009/08/14
- Re: capitalize-dwim (was: Patch to change just-one-space), Xah Lee, 2009/08/14
- Re: capitalize-dwim, joakim, 2009/08/14
- Re: capitalize-dwim, Richard Stallman, 2009/08/14
- Re: Patch to change just-one-space, David Kastrup, 2009/08/14
Re: Patch to change just-one-space,
Juri Linkov <=
Re: Patch to change just-one-space, Miles Bader, 2009/08/13