Subject: bug#32777: 27.0.50; window-buffer gets wrong point

From: Federico Tedin <[email-masked]>
Date: Sun, 30 Sep 2018 01:03:36 -0300

I am looking into this bug, and I've found a shorter way of reproducing it:

1) emacs -q

2) On *scratch*, enter:
next-error
nonexistent-command

3) Move the point to "nonexistent-command"

4) C-x 5 2

5) Move the point to "next-error"

6) M-x M-n shows "End of history" (but it should show "next-error")

It seems like the problem could be solved by modifying the code on
simple.el, line 1713 onward. I'll check and see if I can fix it.