From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Russ P." Newsgroups: gmane.emacs.help Subject: query replace Date: Thu, 7 Oct 2010 21:39:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291959727 22539 80.91.229.12 (10 Dec 2010 05:42:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 05:42:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 06:42:03 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQvk3-00039t-4d for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 06:42:03 +0100 Original-Received: from localhost ([127.0.0.1]:59839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQuZF-0005LR-Mu for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 23:26:49 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!d15g2000prj.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 76.220.46.82 Original-X-Trace: posting.google.com 1286565442 23627 127.0.0.1 (8 Oct 2010 19:17:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 8 Oct 2010 19:17:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d15g2000prj.googlegroups.com; posting-host=76.220.46.82; posting-account=QXgf4wkAAADkKLOneY6DWJPpPelAjS0c User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181685 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:34 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77367 Archived-At: I am in the process of trying to switch from XEmacs to Emacs. I am confused about how to use query replace in Emacs. In XEmacs, I go to Edit/Replace, and I get a "query replace" prompt. I enter the search string, hit return, then enter the replacement string. It then automatically takes me to each occurrence of the search string, where I can hit y or n to tell it to replace or not replace. Or I can hit ! to replace all occurrences at once. When I do the same thing in Emacs, up to entering the search and replacement strings, it does nothing. What am I supposed to do to actually replace occurrences of the search string? Sorry if I am being dense, but it was so easy in XEmacs. Thanks. Russ P.