[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isearch-regexp-in-all-matching-files-in-tree?

From: Kevin Rodgers
Subject: Re: isearch-regexp-in-all-matching-files-in-tree?
Date: Mon, 14 Oct 2002 16:50:01 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

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
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

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

<a href="mailto:&lt;kevinr&#64;;";>Kevin Rodgers</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]