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

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

Re: How do I get global-grep-and-replace to work?


From: Jens Schmidt
Subject: Re: How do I get global-grep-and-replace to work?
Date: 29 Sep 2003 10:54:45 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

address@hidden (Cinnamon) writes:

> I tried global-grep-and-replace, which asks me what I want to change,
> what I want to change this to, and then asks me which files.

A more standard alternative may be:

1. Use `find-grep-dired' to get a Dired buffer that lists files
   matching a certain regexp.
2. Mark all files in that buffer for replacement (for example,
   using %-m (`dired-mark-files-regexp') to mark by regexp).
3. Still in the Dired buffer, do a Q
   (`dired-do-query-replace-regexp') to process all marked files.
4. Do a C-x s (`save-some-buffers') do save the results.

This works at least for Emacs 21.1, not sure about XEmacs.

Jens


reply via email to

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