From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: oisin@ukfsn.org (Cinnamon) Newsgroups: gmane.emacs.help Subject: How do I get global-grep-and-replace to work? Date: 26 Sep 2003 03:51:48 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1064583343 13070 80.91.224.253 (26 Sep 2003 13:35:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2003 13:35:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 15:35:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2sl3-0000tL-00 for ; Fri, 26 Sep 2003 15:35:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2qLY-0008RX-VM for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Sep 2003 07:01:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 194.247.44.153 Original-X-Trace: posting.google.com 1064573511 9354 127.0.0.1 (26 Sep 2003 10:51:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 26 Sep 2003 10:51:51 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:116891 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12817 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12817 Hi, I've a large number of files that need one line changing. 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. I get a neat buffer with all the offending lines in all the files listed, then it askes me Do you want to [replace, edit, search, quit]: When I say replace, it moves to the first buffer onto the line, but instead of changing those lines for me automagically, it just sits there. Also, I'm not sure why its actually going into the file and showing me -- I already said to just replace this with that in *.c, so no need to show me the files, just go ahead and do it :) What is going on? And is there a way I can just coax Xemacs into changing the lines in those files without any more work for me? thanks, Cinnamon