all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Thomas L Roche" <tlroche@us.ibm.com>
Cc: help-gnu-emacs@gnu.org, help-emacs-windows@gnu.org
Subject: Re: isearch-regexp-in-all-matching-files-in-tree?
Date: Mon, 14 Oct 2002 14:55:34 -0400	[thread overview]
Message-ID: <OFD04E65DD.BD82DD6A-ON87256C52.0066DCB3@boulder.ibm.com> (raw)

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.

Alternatively, is there a way that I could query-replace-regexp
on a grep-mode buffer, instead of a dired buffer? I'd be happy if
I could

M-x grep-find RET

find . -type f -print0 -name '*.java'| xargs -0 -e grep -n -e 
'GenericAction' | grep -v 'EGLGenericAction' | grep -v 
'GenericActionModel' | grep -v 'GenericActionCodeGenContrib' RET

Q RET

GenericAction RET

ActionClass RET

             reply	other threads:[~2002-10-14 18:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-14 18:55 Thomas L Roche [this message]
2002-10-15 15:37 ` Re: isearch-regexp-in-all-matching-files-in-tree? Bill Pringlemeir
     [not found] <44364250@toto.iv>
2002-10-15 19:14 ` isearch-regexp-in-all-matching-files-in-tree? Robert Mecklenburg
     [not found] <mailman.1034621906.27584.help-gnu-emacs@gnu.org>
2002-10-14 22:50 ` isearch-regexp-in-all-matching-files-in-tree? Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2002-10-14 18:18 isearch-regexp-in-all-matching-files-in-tree? Thomas L Roche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFD04E65DD.BD82DD6A-ON87256C52.0066DCB3@boulder.ibm.com \
    --to=tlroche@us.ibm.com \
    --cc=help-emacs-windows@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.