From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: `Q' in Dired - be able to skip the rest of one file and move on to the next Date: Tue, 1 Jan 2008 23:34:14 -0800 Message-ID: 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 1199259269 17639 80.91.229.12 (2 Jan 2008 07:34:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 07:34:29 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 02 08:34:47 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J9y7j-0005Kj-7M for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2008 08:34:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9y7N-0000mG-5o for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2008 02:34:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9y7I-0000ly-U4 for emacs-devel@gnu.org; Wed, 02 Jan 2008 02:34:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9y7H-0000li-6N for emacs-devel@gnu.org; Wed, 02 Jan 2008 02:34:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9y7H-0000lf-2p for emacs-devel@gnu.org; Wed, 02 Jan 2008 02:34:19 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9y7G-0006Q9-Bw for emacs-devel@gnu.org; Wed, 02 Jan 2008 02:34:18 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m027YF6I002921 for ; Wed, 2 Jan 2008 00:34:15 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m023tuYk001912 for ; Wed, 2 Jan 2008 00:34:15 -0700 Original-Received: from 141.144.89.95 by acsmt350.oracle.com with ESMTP id 3472028301199259219; Tue, 01 Jan 2008 23:33:39 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85860 Archived-At: Let me know if I'm overlooking something, but AFAIK: `Q' in Dired just runs query-replace-regexp over the marked files. In effect, it treats all of those files together as one big file. That means, for instance, that you cannot use it to easily confirm a couple changes in one file and then skip the other occurrences in that file, move on to the next file, and so on. AFAICT, you must always visit each occurrence in one file before moving on to the next file. (Or else you can of course quit altogether, unmark the file you're through with, and then hit `Q' again.) Is this correct? If so, what do you use for this? I used to use `Q' quite a lot, but it's been a while. I guess I'm so used to Icicles that I've gotten spoiled. (In Icicles, you can directly access search hits that you might want to replace, without going through them in order, and you can remove selected hits from consideration, including all those remaining for a given file.) What about adding something to `Q' that lets you move on to the next file, without quitting query-replacing altogether? I suggested a while back that you be able to do replacement using `grep' output, and IIRC Kim implemented that, so I guess that using that feature together with `grep-find' would provide something like what I'm suggesting, but it would still be good to be able to do it from within `Q'. I'm surprised that this isn't already available (if it isn't), since it seems like a natural extension of query-replace to multiple files: You can skip the rest of a normal query-replace, so you should be able to skip q-r for the rest of a file, but without quitting q-r altogether.