From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: isearch-regexp-in-all-matching-files-in-tree? Date: Mon, 14 Oct 2002 16:50:01 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3DAB4A19.1040708@ihs.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034635871 16132 80.91.224.249 (14 Oct 2002 22:51:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 22:51:11 +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 181E3J-0004C2-00 for ; Tue, 15 Oct 2002 00:51:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 181E3P-0001hh-00; Mon, 14 Oct 2002 18:51:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1034635799 21979749 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:106062 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:2609 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2609 Thomas L Roche wrote: > On Mon, 14 Oct 2002, Tom Roche wrote: > >>>Use case: I'm in a dired buffer in GNU Emacs 21.1.1 on w2k. I >>>want to _interactively_ search for the string 'GenericAction' >>>(and replace with 'ActionClass') in all files with names >>>matching '*.java' anywhere in the directory tree below the >>>current directory. >>> > > Dave Forrest 10/14/2002 02:37 PM > >>Would the Operate/Query replace in marked files Q >> or >>dired-do-query-replace do what you need? >> > > No, because it requires marking the matching files first, but if > there's a way to do that, I could (manually) chain the two > operations. How about M-x find-dired RET RET -type f -name "*.java" C-x h M-x dired-mark-files-in-region Q GenericAction RET ActionClass RET -- Kevin Rodgers