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: new member Date: Thu, 5 Oct 2006 08:09:54 -0500 Organization: UseNetServer.com Message-ID: <936ba$45250290$49fa7e9$27981@DIALUPUSA.NET> References: <1160015257.268170.235270@c28g2000cwb.googlegroups.com> 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 1160055691 5609 80.91.229.2 (5 Oct 2006 13:41:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2006 13:41:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 05 15:41:30 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 1GVTSm-0006Qn-VK for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 15:40:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVTSm-0004EO-Fx for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 09:40:36 -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!uns-out.usenetserver.com!news.usenetserver.com!pc02.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: 24 Original-X-Trace: 936ba45250290a13a024c27981 Original-Xref: shelby.stanford.edu gnu.emacs.help:142200 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:37819 Archived-At: "minidiapolis" wrote in message news:1160015257.268170.235270@c28g2000cwb.googlegroups.com... > Hello, I don't know if I'm in the right group. I'm a relatively new > user to Emacs and I was wondering how I would do a search and have it > delete the specific text. if someone could help me out, I would really > appreciate it. Thanks, Mindy > Pascal has already given you the most general solution to your problem, but if you don't want to get into regular expressions yet and if you haven't changed the default, out-of-the-box key assignments, then just do: M-< (press Alt-Shift-< at the same time to go to beginning of buffer) M-% (press Alt-Shift-% at the same time) and see Query Replace: [Here type the text to be deleted] Query Replace [text] with: [Here press Return (Enter)] Press space bar at every instance of [text] to be deleted and N for those instances to be retained. If after deleting a few instances you are sure you want to delete all the rest, just press Shift-! Ed