Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!ox.com!emv From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer) Newsgroups: comp.archives Subject: [emacs] Re: query-replace across several files? Message-ID: <1991Mar2.200106.23339@ox.com> Date: 2 Mar 91 20:01:06 GMT References: <5820@s3.ireq.hydro.qc.ca> Sender: emv@ox.com (Edward Vielmetti) Reply-To: gamin@ireq-robot.hydro.qc.ca (Martin Boyer) Followup-To: gnu.emacs.help Organization: Laboratoire de robotique, Institut de recherche d'Hydro-Quebec Lines: 34 Approved: emv@ox.com (Edward Vielmetti) X-Original-Newsgroups: gnu.emacs.help Archive-name: emacs/elisp/emacs-global-replace/1991-03-02 Archive: ireq-robot.hydro.qc.ca:/pub/emacs/lisp/global-replace.el.Z [131.195.20.131] Original-posting-by: gamin@ireq-robot.hydro.qc.ca (Martin Boyer) Original-subject: Re: query-replace across several files? Reposted-by: emv@ox.com (Edward Vielmetti) In article 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