From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: regexp to collapse multiple blank lines into one Date: Wed, 12 Oct 2005 01:14:01 +0000 Message-ID: <20051012011401.GP29712@SDF.LONESTAR.ORG> References: <9rd2f.11472$vw6.9111@newsread1.news.atl.earthlink.net> <20051010172845.GX29712@SDF.LONESTAR.ORG> <873bn71yqe.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129079689 28217 80.91.229.2 (12 Oct 2005 01:14:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2005 01:14:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 03:14:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPVCa-0005qn-Df for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2005 03:14:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPVCZ-0007yx-Qj for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2005 21:14:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EPVCQ-0007yi-M4 for help-gnu-emacs@gnu.org; Tue, 11 Oct 2005 21:14:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EPVCP-0007yW-6B for help-gnu-emacs@gnu.org; Tue, 11 Oct 2005 21:14:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPVCP-0007yT-2y for help-gnu-emacs@gnu.org; Tue, 11 Oct 2005 21:14:29 -0400 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EPVCO-0001KC-NK for help-gnu-emacs@gnu.org; Tue, 11 Oct 2005 21:14:29 -0400 Original-Received: from sdf.lonestar.org (IDENT:absent@ukato.freeshell.org [192.94.73.7]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j9C1E1q9026361 for ; Wed, 12 Oct 2005 01:14:01 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j9C1E1aO014897 for help-gnu-emacs@gnu.org; Wed, 12 Oct 2005 01:14:01 GMT Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Neon Absentius , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <873bn71yqe.fsf@tiger.rapttech.com.au> User-Agent: Mutt/1.4.2.1i 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:30156 Archived-At: On Wed, Oct 12, 2005 at 08:21:29AM +1000, Tim X wrote: > 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? > Yes. Or maybe 1.3 since A is somewhat easier to type than C-a ;) -- There is no national science just as there is no national multiplication table; what is national is no longer science. -- Anton Checov