bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dired-do-query-replace stops when it sees a match with different case


From: J. G.
Subject: dired-do-query-replace stops when it sees a match with different case
Date: 21 Jun 2002 13:59:02 -0700

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 (address@hidden)
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 (address@hidden)
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]