Subject: 26.1; query-replace undo fails if user edits the replacement string

From: Tino Calancha <[email-masked]>
Date: Sun, 20 May 2018 21:12:34 +0900

M-<
M-% is RET foo RET SPC E bar RET U
;; Just drop 'foo' but keeps 'bar'.

In GNU Emacs 26.1 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2018-05-20 built on calancha-pc
Repository revision: 845fe038e790c7c62c6b294f88648644a4ae7ddd