unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* dired-do-query-replace stops when it sees a match with different case
@ 2002-06-21 20:59 J. G.
  0 siblings, 0 replies; only message in thread
From: J. G. @ 2002-06-21 20:59 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-21 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-21 20:59 dired-do-query-replace stops when it sees a match with different case J. G.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).