From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: regexp to collapse multiple blank lines into one Date: 12 Oct 2005 08:21:29 +1000 Message-ID: <873bn71yqe.fsf@tiger.rapttech.com.au> References: <9rd2f.11472$vw6.9111@newsread1.news.atl.earthlink.net> <20051010172845.GX29712@SDF.LONESTAR.ORG> Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129069607 4297 80.91.229.2 (11 Oct 2005 22:26:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2005 22:26:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 00:26:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPSYx-0003Qu-16 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2005 00:25:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPSYw-0007bN-4S for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2005 18:25:34 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-NNTP-Posting-Host: ppp18-194.lns2.syd7.internode.on.net Original-X-Trace: duster.adelaide.on.net 1129069289 59.167.18.194 (12 Oct 2005 07:51:29 +0950) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-south.connect.com.au!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:134572 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:30152 Archived-At: Neon Absentius writes: > On Mon, Oct 10, 2005 at 12:33:50PM -0600, Kevin Rodgers wrote: > > > > > In any case, replacing \(^ C-q C-j \)+ with \1 is 10 key strokes, which > > is actually more typing than if you were to replace ^ C-q C-j + with C-q > > C-j (6 keys). > > > > Yes indeed. I didn't think of it. I just wrote the first think > that came to my mind and it worked. About the keystrokes though I > think that C-q shoud count for more than 1 keystroke; perhaps not 2 > keystrokes but 1.5 so your solution has really 8 keystrokes :). So, in that case, is A 1.5 keystrokes while a is only 1? Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!