Subject: bug#36696: 26.2; query-replace error

From: Eli Zaretskii <[email-masked]>
Date: Sat, 20 Jul 2019 12:58:57 +0300

tags 36696 unreproducible
thanks

> From: Theodore Ehrenborg <[email-masked]>
> Date: Tue, 16 Jul 2019 16:22:44 -0400
> 
> Type emacs -Q
> Use C-x C-f to open a new file called test.tex
> Type the following three lines in test.tex:
> \foo
> foo
> foo
> (The first line is '\foo', not 'foo')
> Then go to the beginning of the file with M-<
> and use M-% to begin query-replace
> Try to replace 'foo' with 'foo'.
> When prompted for the first line,
> type 'y' to replace.
> Then emacs returns an error:
> Args out of range: #<buffer test.tex>, 0, 1
> 
> I'm using the most recent installation of MacTex and emacs.
> Both were installed with Homebrew.

I cannot reproduce this in Emacs 26.2, 26.2.90, and 27 built from
sources.

Maybe it's specific to MacTex and Emacs installed with Homebrew.