help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting chunks of whitespace


From: Richard V. Molen
Subject: Re: Deleting chunks of whitespace
Date: 15 Nov 2002 11:42:49 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

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?

-- 
Richard V. Molen

Warning!!
Signature under construction, safety glasses required.









reply via email to

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