From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: Emacs equivalent of the ":g" command in vi Date: Fri, 22 Jul 2011 16:11:46 +0530 Message-ID: References: <14F21CEC-7265-4DE4-888A-A10FCFFF6826@Web.DE> <8762mufxx7.fsf@gmail.com> <5AF5A21A-5A3B-4E35-9B7E-4025FD76AF2F@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd48e04b2637804a8a61ca6 X-Trace: dough.gmane.org 1311331318 15191 80.91.229.12 (22 Jul 2011 10:41:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2011 10:41:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Thierry Volpiatto To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 22 12:41:54 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QkDB3-0004jg-8W for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jul 2011 12:41:53 +0200 Original-Received: from localhost ([::1]:42085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkDB2-00068O-GG for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jul 2011 06:41:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkDAy-000686-9i for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 06:41:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkDAx-0006Nx-Am for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 06:41:48 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:44564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkDAx-0006Np-6O for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 06:41:47 -0400 Original-Received: by iyb14 with SMTP id 14so2285694iyb.0 for ; Fri, 22 Jul 2011 03:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=E9M0o2+3Ux7zvQBWq3Jmjp8MqS/R5ToIzbME7gEcx1M=; b=p11vQsbsOfkgeBk3PXLaf11LAUoywXCLYdBywqhXM2fR1SMP8wfy9+Ukva97SXPynL DGFfjvjI+33Sm2KFmVwvzd3ALhCoUq89wBxEFIH+lX+RSjugcT6zg+lRL6db8k8kN1ku vCvzQv/ZsCcOhwxDU2g2CueNsCTi52d9GvDFw= Original-Received: by 10.231.63.70 with SMTP id a6mr311926ibi.20.1311331306332; Fri, 22 Jul 2011 03:41:46 -0700 (PDT) Original-Received: by 10.42.115.72 with HTTP; Fri, 22 Jul 2011 03:41:46 -0700 (PDT) In-Reply-To: <5AF5A21A-5A3B-4E35-9B7E-4025FD76AF2F@Web.DE> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81728 Archived-At: --000e0cd48e04b2637804a8a61ca6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Fri, Jul 22, 2011 at 3:42 PM, Peter Dyballa wrote= : > > Am 22.07.2011 um 12:02 schrieb C K Kashyap: > > > I'd like the result to not leave blank lines. > > Then modify the regexp to: > > ^.*\(your_regexp\).*^J > > The final ^J (LINEFEED character) can be input as C-q C-j or as C-o. > > -- > Greetings > > Pete > > Globalisation =96 communism from above. > > Thanks Pete ... this works for me. Kashyap --000e0cd48e04b2637804a8a61ca6 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 22, 2011 at 3:42 PM, Peter D= yballa <Peter_= Dyballa@web.de> wrote:

Am 22.07.2011 um 12:02 schrieb C K Kashyap:

> I'd like the result to not leave blank lines.

Then modify the regexp to:

=A0 =A0 =A0 =A0^.*\(your_regexp\).*^J

The final ^J (LINEFEED character) can be input as C-q C-j or as C-o.

--
Greetings

=A0Pete

Globalisation =96 communism from above.


Thanks Pete ... this works for me.
=
Kashyap
--000e0cd48e04b2637804a8a61ca6--