From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Quokka Newsgroups: gmane.emacs.help Subject: Re: Whitespace deletion Date: Fri, 09 Dec 2005 10:15:29 +0800 Message-ID: <4398e883$0$22262$5a62ac22@per-qv1-newsreader-01.iinet.net.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134094908 3289 80.91.229.2 (9 Dec 2005 02:21:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 02:21:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 09 03:21:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkXrb-00073x-CG for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Dec 2005 03:19:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkXru-0004nV-W1 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Dec 2005 21:20:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.7.2.0 Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 36 Original-NNTP-Posting-Host: 203.59.9.243 Original-X-Trace: 1134094467 per-qv1-newsreader-01.iinet.net.au 22262 203.59.9.243 Original-Xref: shelby.stanford.edu gnu.emacs.help:136190 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31803 Archived-At: August Karlstrom wrote: > Kevin Rodgers wrote: >> August Karlstrom wrote: >> > Is there an Emacs command that works like just-one-space, but also >> > deletes newlines? >> > >> > Example: >> > >> > I want to -!- >> > >> > join these two lines >> > >> > should become >> > >> > I want to -!-join these two lines >> >> Does this help? >> >> ,----[ C-h k M-^ ] >> | M-^ runs the command delete-indentation >> | which is an interactive compiled Lisp function in `simple'. >> | (delete-indentation &optional ARG) >> | >> | Join this line to previous and fix up whitespace at join. >> | If there is a fill prefix, delete it from the beginning of this line. >> | With argument, join this line to following line. >> `---- > > No. Did you try it on my example? Have a look at http://www.emacswiki.org/cgi-bin/wiki/DeletingWhitespace I think the kill-whitespace function will do what you want. Paul