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: Sat, 1 Dec 2007 09:19:06 +0100 Message-ID: <200712010919.07310.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: quoted-printable X-Trace: ger.gmane.org 1196497609 31521 80.91.229.12 (1 Dec 2007 08:26:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 08:26:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 09:26:58 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 1IyNgd-0000iN-Qu for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2007 09:26:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyNgM-000455-7M for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2007 03:26:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyNZr-0002DC-UX for help-gnu-emacs@gnu.org; Sat, 01 Dec 2007 03:19:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyNZo-0002CR-O1 for help-gnu-emacs@gnu.org; Sat, 01 Dec 2007 03:19:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyNZo-0002CG-Eq for help-gnu-emacs@gnu.org; Sat, 01 Dec 2007 03:19:52 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IyNZn-00027V-U5 for help-gnu-emacs@gnu.org; Sat, 01 Dec 2007 03:19:52 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyNZm-0001P4-A9 for help-gnu-emacs@gnu.org; Sat, 01 Dec 2007 03:19:50 -0500 Original-Received: from noname (p54BEA741.dip0.t-ipconnect.de [84.190.167.65]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1IyNZj42ft-0000xe; Sat, 01 Dec 2007 09:19:48 +0100 User-Agent: KMail/1.9.5 In-Reply-To: Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX187g0MZ3lanG7HyvMNZp2s4XPUW7660QyMOaw2 lByrPkDnATlHdjJnyGle/0XLEOiJx2i1Vup9k/WU5xLsQbZPG3 WwRNqLYxFG9GPtCMVOxLw== X-detected-kernel: by mx20.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:49751 Archived-At: Am Samstag, 1. Dezember 2007 02:00 schrieb Ke Lu: > > Do want to change filenames in a directory or the contents of files in > > that directory? > > I don't want to change filenames. > I want to change contents of files in a directory. > So let's start with the first task: If you want to add a "2" at all endings in that directory, as "jp.co" =3D> "jp.co2" let's assume, you can perform this with M-x wdired-change-to-wdired-mode M-x query-replace-regexp $ RET 2 ! If everything looks fine, do C-c C-c to write down your changing or quit (with C-c ESC or C-d). With quit nothing is changed. Andreas R=F6hler