[Top][All Lists]

[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 <> 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!

reply via email to

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