From: Jens Schmidt <Jens.Schmidt27@epost.de>
Subject: Re: How do I get global-grep-and-replace to work?
Date: 29 Sep 2003 10:54:45 +0100 [thread overview]
Message-ID: <uoex3zzq2.fsf@undis.closed> (raw)
In-Reply-To: fff6b45f.0309260251.67228285@posting.google.com
oisin@ukfsn.org (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
next prev parent reply other threads:[~2003-09-29 9:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-26 10:51 How do I get global-grep-and-replace to work? Cinnamon
2003-09-26 13:07 ` Klaus Berndl
2003-09-27 1:17 ` Cinnamon
2003-09-29 9:54 ` Jens Schmidt [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-27 17:54 Joe Corneli
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uoex3zzq2.fsf@undis.closed \
--to=jens.schmidt27@epost.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).