From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jkg012@yahoo.com (J. G.) Newsgroups: gmane.emacs.bugs Subject: dired-do-query-replace stops when it sees a match with different case Date: 21 Jun 2002 13:59:02 -0700 Organization: http://groups.google.com/ Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1024694538 9709 127.0.0.1 (21 Jun 2002 21:22:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2002 21:22:18 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17LVrG-0002WO-00 for ; Fri, 21 Jun 2002 23:22:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LVWm-0005ih-00; Fri, 21 Jun 2002 17:01:08 -0400 Original-Received: from mailbox1.ucsd.edu ([132.239.1.53]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LVUm-0005Wu-00 for ; Fri, 21 Jun 2002 16:59:04 -0400 Original-Received: from smtp8.google.com (smtp8.google.com [216.239.33.28]) by mailbox1.ucsd.edu (8.12.1/8.12.1) with ESMTP id g5LKx3Dl008176 for ; Fri, 21 Jun 2002 13:59:03 -0700 (PDT) Original-Received: from exins2.exo.google.com (exins2.prod.google.com [10.4.0.8]) by smtp8.google.com (8.12.2/8.12.3) with ESMTP id g5LKx3X5000789 for ; Fri, 21 Jun 2002 13:59:03 -0700 Original-Received: from sjmm36.sj.google.com (sjmm36.prod.google.com [10.6.39.36]) by exins2.exo.google.com (8.9.3/8.9.3) with ESMTP id NAA03804 for ; Fri, 21 Jun 2002 13:59:03 -0700 Original-Received: (from news@localhost) by sjmm36.sj.google.com (8.9.3/8.9.3) id NAA06253 for gnu-emacs-bug@moderators.isc.org; Fri, 21 Jun 2002 13:59:03 -0700 Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 82 Original-NNTP-Posting-Host: 143.182.124.3 Original-X-Trace: posting.google.com 1024693143 6250 127.0.0.1 (21 Jun 2002 20:59:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 21 Jun 2002 20:59:03 GMT Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2197 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2197 I just encountered a variation on the bug reported in Matt's post (below). (The bug reported by Matt is indeed fixed in 21.2.1, but this variation is not). To reproduce, using version 21.2.1 (i386-msvc-nt5.0.2195): Create two files 1.txt and 2.txt: [mlm query-replace-test]$ cat 1.txt foo [mlm query-replace-test]$ cat 2.txt Foo In a dired buffer, mark 1.txt and 2.txt. Do 'Q Foo RET Bar RET' It reports: "Replaced 0 occurrences" without continuing to 2.txt. Pressing M-, to try to resume just makes emacs say "Replaced 0 occurrences" again. Is there a workaround for this? If not, can someone recommend a good multi-file search and replace tool? I was hoping emacs would save me from Visual C++'s lack of multi-file search and replace... Jake ----------------------------------------------------- From: Matt McClure (mlm@aya.yale.edu) Subject: dired-do-query-replace stops when it sees a match with different case Newsgroups: gnu.emacs.bug View this article only Date: 2001-10-23 15:17:03 PST "GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000 on buffy" dired-do-query-replace stops when it sees a match with different case than specified in FROM, and won't continue with M-,. To repeat: Create two files 1.txt and 2.txt: [mlm query-replace-test]$ cat 1.txt Foo FOO [mlm query-replace-test]$ cat 2.txt Foo In a dired buffer, mark 1.txt and 2.txt. Do 'Q Foo RET Bar RET' When it stops on the first line of 1.txt, do 'y' to replace the first match. Then it reports: "Replaced 0 occurrences" without continuing to 2.txt. Pressing M-, to try to resume just makes emacs say "Replaced 0 occurrences" again. -- Matt http://www.faradic.net/~mmcclure/ "I don't believe in rivalries. I don't believe in curses. Wake up the damn Bambino, maybe I'll drill him in the (behind)." -Pedro Martinez From: Eli Zaretskii (eliz@is.elta.co.il) Subject: Re: dired-do-query-replace stops when it sees a match with different case Newsgroups: gnu.emacs.bug View this article only Date: 2001-10-24 05:00:09 PST On 23 Oct 2001, Matt McClure wrote: > "GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000 on buffy" > > dired-do-query-replace stops when it sees a match with different case > than specified in FROM, and won't continue with M-,. Thanks, this is already fixed in Emacs 21.1, released just a few days ago.