[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: |
Andreas Abel |
Subject: |
bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps |
Date: |
Mon, 23 Nov 2020 10:09:38 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 |
The dired-do-find-regexp-and-replace command does not seem to parse the
regex entered by the user correctly. If the regex string contains a
newline character (^Q^J), it seems that the parsing stops there. At
least I have seen errors like "unmatched bracket" and the like.
Anyhow, I did not get it to replace multiline text. I found an answer
here:
https://emacs.stackexchange.com/questions/30437/dired-search-and-replace-is-throwing-no-results
The solution is to manually invoke dired-do-query-replace-regexp
(instead of pressing just Q).
However, this solution is hard to discover, because it is unexpected
that the official regex-replace feature (key Q) contains such a blunder.
- Why isn't the more robust
dired-do-query-replace-regexp
bound to Q?
- Why not fix the bug in dired-do-find-regexp-and-replace? It has been
reported for version 26 already, and it is not a minor issue. Replacing
interactively in several files is an **extremely** useful feature, and I
would not want to do something like that outside of emacs.
Thanks for all the good work going into emacs.
Best,
Andreas
P.S.: Your approach to issue tracking (by email) must be considered
stone-age by now. How about switching to GitHub / GitLab or the like?
(Unless you want to keep the bar up, of course. But this is hardly in
the spirit of open source.)
--
Andreas Abel <>< Du bist der geliebte Mensch.
Department of Computer Science and Engineering
Chalmers and Gothenburg University, Sweden
andreas.abel@gu.se
http://www.cse.chalmers.se/~abela/
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps,
Andreas Abel <=
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Eli Zaretskii, 2020/11/23
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Drew Adams, 2020/11/23
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Eli Zaretskii, 2020/11/24
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Drew Adams, 2020/11/24
- bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps, Juri Linkov, 2020/11/24