From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Luis O. Silva" Newsgroups: gmane.emacs.help Subject: search and replacement at once in some buffers Date: Wed, 6 Nov 2002 13:12:10 +0300 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <15816.60154.272065.857273@localhost.localdomain> Reply-To: "Luis O. Silva" NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1036577424 16920 80.91.224.249 (6 Nov 2002 10:10:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 10:10:24 +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 189N8e-0004Ol-00 for ; Wed, 06 Nov 2002 11:10:21 +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 189N6X-0004bC-00; Wed, 06 Nov 2002 05:08:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 189MsN-0005K9-00 for help-gnu-emacs@gnu.org; Wed, 06 Nov 2002 04:53:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 189MsL-0005Jv-00 for help-gnu-emacs@gnu.org; Wed, 06 Nov 2002 04:53:30 -0500 Original-Received: from relay.wplus.net ([195.131.52.142]) by monty-python.gnu.org with esmtp (Exim 4.10) id 189MsL-0005Jo-00 for help-gnu-emacs@gnu.org; Wed, 06 Nov 2002 04:53:29 -0500 X-Real-To: Original-Received: from emaile.wplus.net (emaile.wplus.net [195.131.52.155]) by relay.wplus.net (8.9.1/8.9.1/wplus.2) with ESMTP id MAA08014 for ; Wed, 6 Nov 2002 12:53:26 +0300 (MSK) Original-Received: by emaile.wplus.net with scanned-ok (WebPlus antispam mailer ) id 189MsH-00068e-00 for help-gnu-emacs@gnu.org; Wed, 06 Nov 2002 12:53:25 +0300 Original-Received: from [195.131.51.163] (helo=localhost.localdomain) by emaile.wplus.net with esmtp (WebPlus antispam mailer ) id 189MsF-00067y-00 for help-gnu-emacs@gnu.org; Wed, 06 Nov 2002 12:53:24 +0300 Original-To: help-gnu-emacs@gnu.org X-Mailer: VM 6.97 under Emacs 21.1.1 X-Virus-Scanned: by AVP (http://www.avp.ru/) X-IP: 195.131.51.163 X-From: silva@paloma.spbu.ru 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:3340 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3340 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. This means that if I do `query-replace-some-buffers', for instance, I'll be prompted with the list of buffers and then the first buffer in that list will become the current buffer and `query-replace' will run throughout it until the end. Afterwards the second buffer in the list will become the current buffer and so on. I think I could write the corresponding elisp functions, but, since I'm not a programmer (just a bad mathematician), I'd like to know whether someone has already written similar functions and has contributed with a package. Thanks in advance, luis -- Luis Octavio Silva P. St. Petersburg State University. 66/3 Botanicheskaya St., Apt.119/2 Stary Peterhof St. Petersburg, Russia.