[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to change just-one-space
From: |
Tassilo Horn |
Subject: |
Re: Patch to change just-one-space |
Date: |
Tue, 23 Nov 2010 09:29:49 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> Attached is a bzr bundle which does this. If the user passes the
>> argument -N, it will remove any whitespace characters (spaces, tabs,
>> carriage returns, newlines) and leave N spaces. Unfortunately I
>> couldn't think of a good way to make e.g. "M-- M-0 M-SPC" leave 0
>> spaces.
>
> Any objection to such a change? Removing newlines sounds OK to me, but
> I don't use just-one-space, so I don't have a good feeling for what
> other useful meaning could be used for a negative argument.
I'd highly appreciate such a change. The last week I had to paste tons
of Java code into several LaTeX listings and I used `just-one-space' and
`kill-line' gazillions of times to reformat it.
And since C-u -1 M-SPC for any negative number is equivalent to C-u 0
M-SPC, I don't think it won't have big impact, at least not in
interactive usage. And inside the emacs code base, there is only one
call to `just-one-space' with an argument (emulation/cua-rect.el), but
that uses an explitit arg of 0.
Bye,
Tassilo