From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Whitespace deletion Date: Fri, 9 Dec 2005 20:27:58 +0000 Organization: muc.de e.V. -- private internet access Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1134164283 13798 80.91.229.2 (9 Dec 2005 21:38:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 21:38:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 09 22:38:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkpvM-0004gv-4B for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Dec 2005 22:37:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ekpvi-0004io-8M for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Dec 2005 16:37:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.space.net!news.csl-gmbh.net!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1134163630 44515 193.149.49.134 (9 Dec 2005 21:27:10 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 9 Dec 2005 21:27:10 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:136213 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:31827 Archived-At: August Karlstrom wrote on Thu, 08 Dec 2005 19:46:51 GMT: > Hi, > Is there an Emacs command that works like just-one-space, but also > deletes newlines? There is in CC Mode (that's c-mode, c++-mode, java-mode, ....), namely c-hungry-backspace. Or, if you're at the other end of the gap, c-hungry-delete-forward. As from CC Mode 5.31, they're bound by default to C-c C-DEL and C-c C-d. You'll probably have to insert that single space by hand, though. [ .... ] > Regards, > August -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").