🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189357

Re: query-replace across several files?

#189357
From: Martin Boyer
Date: Sat, 02 Mar 1991 13:37
28 lines
1817 bytes
In article <PARTAIN.91Feb28150027@tegua.cs.glasgow.ac.uk> partain@cs.glasgow.ac.uk (Will Partain) writes:
>Does someone have elisp code to do
>query-replace-across-all-the-files-mentioned-in-my-*compilation*-buffer?


This is getting to be a "frequently-asked-question"!

There are at least two ways to do this:

 - The tags library includes tags-query-replace that will do a
   query-replace across all the files mentioned in the TAGS file

 - My global-replace will do the same on all the lines mentioned in
   the *compilation* buffer, usually after doing a 'grep'.

tags-query-replace is standard in the distribution.

global-replace is available by anonymous ftp from ireq-robot.hydro.qc.ca.
You'll need /pub/emacs/lisp/{compile,global-replace,query}.el.Z.
Eventually, I should make that stuff available through the LCD archive at
tut.cis.ohio-state.edu but I'm leaving for a ski vacation in Utah this
afternoon, so don't hold your breath.

-- 
Martin Boyer                            mboyer@ireq-robot.hydro.qc.ca
Institut de recherche d'Hydro-Quebec    mboyer@ireq-robot.uucp
Varennes, QC, Canada   J3X 1S1
+1 514 652-8412
Technical Details
Message-ID: <5820@s3.ireq.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bonnie.concordia.ca!s3!gamin
References: <PARTAIN.91Feb28150027@tegua.cs.glasgow.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,63902fc47ca06e79
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-03-02 14:35:20 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bonnie.concordia.ca!s3!gamin
From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer)
Newsgroups: gnu.emacs.help
Subject: Re: query-replace across several files?
Summary: Two ways to do it.
Message-ID: <5820@s3.ireq.hydro.qc.ca>
Date: 2 Mar 91 13:37:32 GMT
References: <PARTAIN.91Feb28150027@tegua.cs.glasgow.ac.uk>
Sender: root@s3.ireq.hydro.qc.ca
Distribution: gnu
Organization: Laboratoire de robotique, Institut de recherche d'Hydro-Quebec
Lines: 28