[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31796: 26.1; dired-do-find-regexp-and-replace fails to find multilin
bug#31796: 26.1; dired-do-find-regexp-and-replace fails to find multiline regexps
Tue, 12 Jun 2018 06:17:28 -0400
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Žygimantas Bruzgys <address@hidden> writes:
> 1) Create ~/test with a file with following contents:
> 2) Visit directory using dired: C-f ~/test
> 3) Initiate regexp-replace by hitting Q
> 4) multi[[:space:]]line RET singeline RET
> 5) See that dired regexp replace failed reporting that no results were
> 6) Visit a file you have just created.
> 7) Initiate query-replace-regexp with C-M-%
> 8) Accept the suggested (previous) query-replace by hitting RET
> 9) See that the query is actually correct and finds the result.
As the docstring of dired-do-find-regexp-and-replace says:
REGEXP should use constructs supported by your local ‘grep’ command.
grep matches single lines, so multiline matching won't work.