[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multilin
From: |
Eli Zaretskii |
Subject: |
bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps |
Date: |
Wed, 02 Dec 2020 19:47:43 +0200 |
> Cc: rms@gnu.org, abela@chalmers.se, 31796@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Wed, 2 Dec 2020 19:43:52 +0200
>
> >> Although... since it has to scan the full file anyway, it could first do
> >> a quick detection, and then maybe rescan from the beginning if the
> >> encoding turns out to be something else.
> >
> > That'd be too late, as some matches were already output.
>
> It could buffer them until the full file has been parsed. Encoding
> detection and conversion must add a certain overhead anyway, so I'm not
> sure how expensive the extra buffering would be in comparison.
>
> As a bonus, per-file buffering like that would allow easier
> parallelization of searches.
Buffering means you don't output matches as soon as you find them,
which might be regarded as a kind of regression -- see Richard's bug
reports a few days ago. And since you never know where in the file
the telltale byte sequences will appear, you will need to always wait
until the entire file is read -- which could be prohibitive for very
large files.
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Richard Stallman, 2020/12/01
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Eli Zaretskii, 2020/12/01
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Richard Stallman, 2020/12/01
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Eli Zaretskii, 2020/12/02
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Dmitry Gutov, 2020/12/02
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Eli Zaretskii, 2020/12/02
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Dmitry Gutov, 2020/12/02
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps,
Eli Zaretskii <=
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Richard Stallman, 2020/12/03
bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Dmitry Gutov, 2020/12/02
bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Juri Linkov, 2020/12/01