help-emacs-windows
[Top][All Lists]
Advanced

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

Re: [h-e-w] isearch-regexp-in-all-matching-files-in-tree?


From: Thomas L Roche
Subject: Re: [h-e-w] isearch-regexp-in-all-matching-files-in-tree?
Date: Wed, 16 Oct 2002 22:05:44 -0400

"Thomas L Roche" Monday, October 14, 2002 7:18 PM
>> 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.

"Dr Francis J. Wright" 10/16/2002 09:37 AM
> List all the files in the tree in the same dired buffer by using the
> ls switch R (recursive), e.g. do C-u C-x d, add R to the string of
> switches and then confirm the root directory of the tree. (This
> should work either by default in NTEmacs or if you are using a
> decent external ls program.)

Another thing I didn't know.

> From the Regexp menu, select Mark... and enter an empty regexp (just
> hit Return). This will mark every file in the buffer.

... and this is even better:

% m .* RET

becomes

% m RET

I'll add this to

http://www.emacswiki.org/cgi-bin/wiki.pl

when it's behaving better.




reply via email to

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