From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bernd Wolter Newsgroups: gmane.emacs.help Subject: Re: search and replacement at once in some buffers Date: 06 Nov 2002 15:36:44 +0100 Organization: Not much Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036594385 30927 80.91.224.249 (6 Nov 2002 14:53:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 14:53:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 189RYB-00081t-00 for ; Wed, 06 Nov 2002 15:52:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 189RY9-0005lS-00; Wed, 06 Nov 2002 09:52:57 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!newsfeed1.sbs.de!news.mch.sbs.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: m33773pp.mchp.siemens.de Original-X-Trace: news.mch.sbs.de 1036593638 20605 139.23.242.230 (6 Nov 2002 14:40:38 GMT) Original-X-Complaints-To: abuse@siemens.de Original-NNTP-Posting-Date: Wed, 6 Nov 2002 14:40:38 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:106791 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3346 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3346 "Luis O. Silva" writes: > Dear Emacs Community, > > I want to use some of the search and replacement commands, > viz. > > `search-forward', `search-backward', `isearch-forward', > `isearch-backward', `query-replace', `replace-regexp', > `replace-string' > > at once in a predefined list of buffers, just in the same way > in which these commands are used in the current buffer. I think you may find dired's Q command helpful (also look at the different marking commands). ,----[ To be found by "C-h i RET m emacs RET m dired -> "Operating on Files"" ] | `Q REGEXP TO ' | Perform `query-replace-regexp' on each of the specified files, | replacing matches for REGEXP with the string TO | (`dired-do-query-replace-regexp'). `---- HTH bernd