mhayashi1120 / Emacs-wgrep

Writable grep buffer and apply the changes to files
GNU General Public License v3.0
612 stars 43 forks source link

`query-replace` aborts `Args out of range: #<buffer *grep*>, 0, 1` #85

Open netjune opened 2 years ago

netjune commented 2 years ago
  1. emacs -Q and install wgrep from mepla
  2. In emacs, run grep and switch to the result buffer (with more than one results in it)
  3. run wgrep-change-to-wgrep-mode
  4. run query-replace, replace the text grepped in 2 to any text and confirm
  5. Emacs aborts after the first replace with error message: Args out of range: #<buffer *grep*>, 0, 1

Emacs: 26.3

OS: centos 7 x86_64