[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to change just-one-space
From: |
Deniz Dogan |
Subject: |
Re: Patch to change just-one-space |
Date: |
Thu, 31 Dec 2009 21:55:47 +0100 |
2009/8/14 Daniel Colascione <address@hidden>:
> On Aug 13, 2009, at 7:30 PM, Deniz Dogan wrote:
>>
>> Not a bad idea. I'd like to take your idea and revise it a bit: If
>> there are only whitespace characters characters between point and EOL,
>> nuke including newlines. Otherwise, nuke excluding newlines.
>
> just-one-space with a negative prefix argument is currently meaningless
> (more precisely, negative arguments are treated as 0). Why not make a
> negative argument mean "kill including newlines"? That way, you can just
> whack M-- M-SPC to get the behavior you want.
>
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.
--
Deniz Dogan
just-one-space-negative-argument.txt
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Patch to change just-one-space,
Deniz Dogan <=