From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: replace-string for 1 line Date: Thu, 17 Aug 2006 11:38:14 -0500 Organization: UseNetServer.com Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155832871 2058 80.91.229.2 (17 Aug 2006 16:41:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2006 16:41:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 17 18:41:10 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDkuy-0008C6-Gj for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Aug 2006 18:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDkux-0001oZ-OB for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Aug 2006 12:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c08.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 32 Original-X-Trace: e5b1c44e49b26a13a831d30694 Original-Xref: shelby.stanford.edu gnu.emacs.help:141109 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:36734 Archived-At: "ld1976" wrote in message news:mailman.5278.1155831504.9609.help-gnu-emacs@gnu.org... > > Hello. > Say I want to carry out a replace command, but just for 1 line and not the > rest of the docuemnt, is there a way to do that? I have looked and couldn't > find it. > Thanks, > -- > View this message in context: http://www.nabble.com/replace-string-for-1-line-tf2121982.html#a5853003 > Sent from the Emacs - Help forum at Nabble.com. > > > Type: (prompts are in quotes) M-% "Query replace" string1 "with:" string2 q Point is left after 2nd instance of string1. Ed