Subject: bug#21523: 25.0.50; Undo with active region adds extra text

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 16 Aug 2021 15:53:55 +0200

Eli Zaretskii <[email-masked]> writes:

>> This bug is still present in Emacs 28.
>
> Why is it a bug?  What is the expected "non-buggy" behavior in this
> case?

I'd expect it to either do nothing (since we're undoing in a region, and
the changed text is outside the region), or change the "This" to
"this".  Leaving "Thisthis" in the buffer has to be a bug no matter how
you look at it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no