I am trying to quickly search and replace in multiple files using dired. The steps I follow are from this question (Chris Conway's and Frank Henard's answers), I am pretty sure the instructions are correct since it seems like I am the only person having this problem.
To simplify the problem, the steps I am doing are as follows:
- Open a folder in dired
- Mark a file with
m
Q
to search and replace in the marked file, this command will ask for two arguments, in the search query argument I typediv
, and in the replacement query argument I typefoo
(to replace div with foo).
After I do these simple steps, the search throws no results, the buffer says:
No matches for: div
I know plenty divs are spreaded all over the file. Perhaps I am not entering the arguments in the correct format, I tryed many things, like enclosing the string in quotes or double quotes, and running emacs with the -q argument in the shell to disable my dotfile. The instructions looked pretty simple, I don't know what I am doing wrong.
Emacs version: 25.1.1
grep
, so it may be an issue with what grep executable it is finding or what args are being passed. Also, try to reproduce this after starting with emacs with -Q (ie with the default settings, no local config.)M-x rgrep
works fine, but dired's Q option doesn't.grep-find-ignored-files
andgrep-find-ignored-directories
a factor? (Although they also affectrgrep
.) FYI the implementation for theQ
binding is completely new in Emacs 25. 24.5 runstags-query-replace
whereas 25.1 uses the newxref-collect-matches
andxref-query-replace-in-results
.