[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting chunks of whitespace
From: |
Benjamin Lewis |
Subject: |
Re: Deleting chunks of whitespace |
Date: |
Fri, 15 Nov 2002 12:02:18 -0800 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (sparc-sun-solaris2.8) |
On 15 Nov 2002, Richard V. Molen wrote:
> Benjamin Lewis <bclewis@cs.sfu.ca> writes:
>
>> Not quite what you want, but you could check out
>> `delete-horizontal-space' and 'just-one-space', bound by default to
>> `M-\' and 'M-<SPC>' respectively.
>
> These key bindings are nice since they mesh well with M-d.
>
> On another editor there was a function like that I miss...
>
> if the cursor is at the end of line, pull up the next line (like C-k)
> else
> if the cursor is on non-whitespace, delete all characters to end of line
> that are non-whitespace.
> else
> if the cursor is on whitespace, delete all characters to the end of line
> that are whitespace.
>
> Does anyone have such a function?
Not sure I understand. Where would you use this that C-k doesn't do what
you want?
Is the function `delete-trailing-whitespace' helpful?
--
Benjamin Lewis
F u cn rd ths u cnt spl wrth a dm!
- Deleting chunks of whitespace, Moore, Mathew L, 2002/11/15
- Re: Deleting chunks of whitespace, Richard V. Molen, 2002/11/15
- Re: Deleting chunks of whitespace, Benjamin Rutt, 2002/11/15
- RE: Deleting chunks of whitespace, Moore, Mathew L, 2002/11/15
- Re: Deleting chunks of whitespace, Benjamin Lewis, 2002/11/15
- Re: Deleting chunks of whitespace, Richard V. Molen, 2002/11/15
- Re: Deleting chunks of whitespace,
Benjamin Lewis <=
- Re: Deleting chunks of whitespace, Richard V. Molen, 2002/11/15
- Re: Deleting chunks of whitespace, Ehud Karni, 2002/11/16
- Message not available
- Re: Deleting chunks of whitespace, Richard V. Molen, 2002/11/18
- Re: Deleting chunks of whitespace, Ehud Karni, 2002/11/18
- Message not available
- Re: Deleting chunks of whitespace, Richard V. Molen, 2002/11/18
Re: Deleting chunks of whitespace, Kai Großjohann, 2002/11/16