Glenn Morris <rgm <at> gnu.org>
to control <at> emacsbugs.donarmstrong.com.
Full text available.Received: (at unknown) by unknown; unknown X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 17 May 2008 10:28:26 +0000 Received: from mercure.iro.umontreal.ca (mercure.iro.umontreal.ca [132.204.24.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4HASH9U006861 for <submit <at> emacsbugs.donarmstrong.com>; Sat, 17 May 2008 03:28:19 -0700 Received: by mercure.iro.umontreal.ca (Postfix, from userid 20848) id 89A372CFC89; Sat, 17 May 2008 06:28:17 -0400 (EDT) X-Original-To: monnier <at> iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 6C3E32CFC81 for <monnier <at> iro.umontreal.ca>; Sat, 17 May 2008 06:28:17 -0400 (EDT) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 623EB3B8B43 for <monnier <at> iro.umontreal.ca>; Sat, 17 May 2008 06:28:09 -0400 (EDT) Received: from localhost ([127.0.0.1]:58888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxJe4-0008EU-Qc for monnier <at> iro.umontreal.ca; Sat, 17 May 2008 06:28:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxJdV-0008Dg-Um for emacs-devel <at> gnu.org; Sat, 17 May 2008 06:27:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxJdU-0008Cq-DC for emacs-devel <at> gnu.org; Sat, 17 May 2008 06:27:32 -0400 Received: from [199.232.76.173] (port=52587 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxJdU-0008Ca-6L for emacs-devel <at> gnu.org; Sat, 17 May 2008 06:27:32 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:57186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <xah <at> xahlee.org>) id 1JxJdU-0007Ja-4w for emacs-devel <at> gnu.org; Sat, 17 May 2008 06:27:32 -0400 Received: from mail.gnu.org ([199.232.76.166]:58086 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from <xah <at> xahlee.org>) id 1JxJcN-0005nA-BF for emacs-pretest-bug <at> gnu.org; Sat, 17 May 2008 06:26:23 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from <xah <at> xahlee.org>) id 1JxJdP-0007Iz-Ja for emacs-pretest-bug <at> gnu.org; Sat, 17 May 2008 06:27:31 -0400 Received: from mout.perfora.net ([74.208.4.197]:61307) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <xah <at> xahlee.org>) id 1JxJdP-0007Gt-2w for emacs-pretest-bug <at> gnu.org; Sat, 17 May 2008 06:27:27 -0400 Received: from [192.168.1.2] (c-24-6-97-120.hsd1.ca.comcast.net [24.6.97.120]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1JxJdB3QjD-0003QV; Sat, 17 May 2008 06:27:15 -0400 Mime-Version: 1.0 (Apple Message framework v753) Content-Transfer-Encoding: quoted-printable Message-Id: <DB4DDF05-8749-40D9-8E34-A700816EF823 <at> xahlee.org> Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed To: emacs-pretest-bug <at> gnu.org From: xah lee <xah <at> xahlee.org> Date: Sat, 17 May 2008 03:26:26 -0700 X-Mailer: Apple Mail (2.753) X-Provags-ID: V01U2FsdGVkX1+5/rGXbWO2OIBmbdPFTzSRuvj66DTYfoev9+B HTn3G1gMyOhWk5t6SAapu0ptqh7L34R/lVq0KBKQUzGKlTz1D9 7enGc2PxcTrw5eHO1Jn/A== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Cc: Subject: dired-do-query-replace-regex replace ALL X-BeenThere: emacs-devel <at> gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request <at> gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/emacs-devel> List-Post: <mailto:emacs-devel <at> gnu.org> List-Help: <mailto:emacs-devel-request <at> gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request <at> gnu.org?subject=subscribe> Sender: emacs-devel-bounces+monnier=iro.umontreal.ca <at> gnu.org Errors-To: emacs-devel-bounces+monnier=iro.umontreal.ca <at> gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.49, requis 5, BAYES_00 -2.60, MC_REPONSE 0.11, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca <at> gnu.org Emacs suggestion: when in dired mode in the processing of doing dired-do-query-replace-=20 regexp (shortcut Q), it offers the ability to do replacement without =20 asking on the current file, by pressing the ! key, but it would be =20 nice to have: (1) the ability to do ALL replacements on ALL files without further =20 asking. (2) the ability to not do any replacement on the current file. I use dired-do-query-replace-regexp few times a week, typically on =20 tens of files, but maybe once in a month i do it over hundreds or =20 thuosands of files on a website. Often, after some replacement, it becomes obvious that it is safe to =20 do ALL replacement for ALL files. When this is needed, typically i =20 can just hold down the ! key. But when the number of files is =20 hundreds or more, typically there will be seveal 5 second delays =20 where i assume emacs is doing garbage collection. The bottom line is =20 that, holding down ! is not a good solution because i end up having =20 to wait a total of maybe 20 or 30 seconds during the whole operation. For this reason, i often abort the operation, then switch to a perl =20 or python script i've written that does blind find/replace on all =20 files. This will finish the job on thousands of files within 5 =20 seconds. But I couldn't reply on this since often i need =20 interactively see and confirm the replacements, which emacs provides. =20= (emacs also lets me view the change file afterwards or decide to save =20= them...etc, which i won't be able to do with perl...) So, it would be nice, if emacs's dired-do-query-replace-regexp offer =20 the option to do all replacement on all files. Perhaps this can be introduced as pressing the @ key. For suggestion item (2), the scenario is that sometimes i have a big =20 file and it is apparent that i don't want any replacement to happen =20 on that file. As things are, i have to repeatedly pressing n while =20 paying attention not to go over to the next file. This is a tiring =20 process. dired-do-query-replace-regexp is very nice and i've been using it for =20= 2 years. For just tens of files the above isn't a problem. But when =20 doing few hundred files, and on tens of replacement pairs (i.e. using =20= dired-do-query-replace-regexp tens of times, each time on hundreds of =20= files), the above features seems a very good one to have. It seems =20 also a logical feature complementating the various recursive edit and =20= edit-replacement-text currently provided by emacs. PS some background... I'm doing on static websites, which has few =20 hundred or thousand files, such as systimatically changing a style =20 markup, etc. In the past 2 days, i spent entire 2 days using dired-do-=20= query-replace-regexp (in combination with perl and python script). Thanks. Xah xah <at> xahlee.org =E2=88=91 http://xahlee.org/ =E2=98=84
xah lee <xah <at> xahlee.org>:Emacs Bugs <bug-gnu-emacs <at> gnu.org>.
Full text available.bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:bug#267; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.