Subject: bug#37700: 27.0.50; undo mouse-drag-and-drop-region ineffective

From: Mattias Engdegård <[email-masked]>
Date: Wed, 16 Oct 2019 17:27:05 +0200

12 okt. 2019 kl. 19.53 skrev Eli Zaretskii <[email-masked]>:
> 
> Or maybe have those commands have an 'undo' property which would tell
> 'undo' to treat them specially.  Like we do with delete-selection.

After trying various approaches, the attached patch looks somewhat promising. It adds a new element type to buffer-undo-list, `unconfined', which disables selective undo for one record. Consider it a proof-of-concept.

While it has the advantage of not requiring the user to change any settings, I still prefer the first approach (an option to disable undo confinement), as it's less intrusive and more generally useful. However, this should work as well.