From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rvmolen@bambecksystems.com (Richard V. Molen) Newsgroups: gmane.emacs.help Subject: Re: Deleting chunks of whitespace Date: 15 Nov 2002 11:42:49 -0800 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037391185 32352 80.91.224.249 (15 Nov 2002 20:13:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 20:13:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Cmpr-0008Pc-00 for ; Fri, 15 Nov 2002 21:13:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Cmqr-0004R2-00; Fri, 15 Nov 2002 15:14:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.iccinternet.com!news.iccinternet.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 15 Nov 2002 13:42:01 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 31 Original-NNTP-Posting-Host: 209.0.189.26 Original-X-Trace: sv3-sqen1RxIe9rCt7wqQg8p9nDZGg+926RL7raHI+Yfmk6+YxL3usntySGrGp7eqrOXdDos/RIVyI/uXNL!p6Zgj3K5ahD6zwZfCE1WSRCuHzGSY+vjJR0BVeSMcFJjD7kubGH9YnZkju4MPUSXWsq130JiHvbw Original-X-Complaints-To: abuse@iccinternet.com X-DMCA-Complaints-To: abuse@iccinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:107095 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3647 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3647 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-' 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.