From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Interative batch query-replace question Date: Thu, 29 Nov 2007 08:37:42 +0100 Message-ID: <200711290837.42683.andreas.roehler@online.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196321911 26112 80.91.229.12 (29 Nov 2007 07:38:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 07:38:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 08:38:38 2007 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.50) id 1Ixdyl-000887-Pb for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2007 08:38:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxdyW-0005do-5D for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2007 02:38:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ixdy9-0005bS-BO for help-gnu-emacs@gnu.org; Thu, 29 Nov 2007 02:37:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ixdy7-0005YQ-JD for help-gnu-emacs@gnu.org; Thu, 29 Nov 2007 02:37:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixdy7-0005YI-CG for help-gnu-emacs@gnu.org; Thu, 29 Nov 2007 02:37:55 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ixdy7-0001tq-4a for help-gnu-emacs@gnu.org; Thu, 29 Nov 2007 02:37:55 -0500 Original-Received: from noname (p54BE84AB.dip0.t-ipconnect.de [84.190.132.171]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1Ixdy53zs6-0006Qx; Thu, 29 Nov 2007 08:37:54 +0100 User-Agent: KMail/1.9.5 In-Reply-To: Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1+raI+oz6uIVhW0PrKzGDFXiZAakE6BcP1Ahmf Nox0+iAjh02puDg1Uf7uXfjpV+V7F4s403tPP5FnTusB/45Hnv s7Q0mrCU1zblvumVhVtdw== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:49675 Archived-At: Am Donnerstag, 29. November 2007 06:56 schrieb Ke Lu: > Sorry, I forgot to move point to the begining of buffer, > It is ok now. > > But dired-do-query-replace-regexp still have some peoblem. > My function looks like: > (defadvice query-replace-regexp (before > move-start-after-query-replace-regexp activate) > (goto-char (point-min))) > > (defun batch-query-replace-regexp() > (interactive) > (switch-to-buffer "*Find*") > (dired-do-query-replace-regexp "jp\\.co" "jp.co2") > (switch-to-buffer "*Find*") > (dired-do-query-replace-regexp "java" "java2") > ) > > But the second one can't be executed and there is not any > error message. > What is the reason? > > Ke Lu writes: > > I want to do a Interative batch query-replace which looks like: > > (defun a-batch-query-relace() > > (interactive) > > (query-replace "jp.co" "jp.co2") > > (query-replace "java" "java2") > > ..... > > ) > > But only first query-replace be excuted,I would like to know why > > and how to solve it. > > _______________________________________________ Same problem?