From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: search and replacement at once in some buffers Date: 6 Nov 2002 18:34:19 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036609477 18345 80.91.224.249 (6 Nov 2002 19:04:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 19:04:37 +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 189VTZ-0004kn-00 for ; Wed, 06 Nov 2002 20:04:29 +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 189VUP-0004uQ-00; Wed, 06 Nov 2002 14:05:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!news.chips.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1036607659 23450 9.2.16.245 (6 Nov 2002 18:34:19 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 6 Nov 2002 18:34:19 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: shelby.stanford.edu gnu.emacs.help:106805 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:3358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3358 If you will accept "files" instead of "buffers", use dired-mode, mark the files you want to work on, and use the "Q" command. "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. 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. -- -- Ken Goldman kgold@watson.ibm.com 914-784-7646