GNU bug report logs -
#73018
31.0.50; wdired + replace-regexp only modifies the visible portion of the buffer
Previous Next
Reported by: Madhu <enometh <at> meer.net>
Date: Wed, 4 Sep 2024 02:38:01 UTC
Severity: normal
Found in version 31.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Juri Linkov <juri <at> linkov.net> writes:
> Maybe this is reproducible only on very long Dired buffers?
I tried in a buffer with over 19,000 files. I should have experienced a
problem (no matches found, nothing changed) if font-lock would be
related. But every function involved always found matches hundreds of
screens below the current position. I reloaded the buffer after each
experiment to be sure only the currently visited area was ever displayed.
OTOH, I did see the match-data issue occur. Maybe this is the only
reason of our problems. I would focus on trying to understand that
problem.
> > Second: I'm confused. Apparently, when `dired-isearch-filenames-mode'
> > is on, why do `search-forward-regexp' and `replace-regexp' behave
> > differently? `search-forward-regexp' does find matches outside of file
> > names that `replace-regexp' ignores.
>
> `replace-regexp' uses Isearch functions,
> `search-forward-regexp' is a core function that doesn't use Isearch.
It's a not-so-nice inconsistency, but ok...
Michael.
This bug report was last modified 296 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.