GNU bug report logs -
#31796
26.1; dired-do-find-regexp-and-replace fails to find multiline regexps
Previous Next
Full log
View this message in rfc822 format
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 <at> gu.se
http://www.cse.chalmers.se/~abela/
This bug report was last modified 4 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.