]> git.eshelyaron.com Git - emacs.git/commit
Map redo records for undo in region to 'undo-in-region
authorYuan Fu <casouri@gmail.com>
Wed, 3 Mar 2021 14:50:15 +0000 (09:50 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Mar 2021 22:39:39 +0000 (17:39 -0500)
commit71ef0122abf5215eafa2dc414b75630a709de008
tree1031e4120679eb3118568c5b92f7e77d5a4fd024
parentd9c94e93b7013d575aeb2a8e8077564a80b04f7c
Map redo records for undo in region to 'undo-in-region

* lisp/simple.el (undo-equiv-table): Add explaination for
undo-in-region, undo to the beginning of undo list and null undo.
(undo): If equiv is 'undo-in-region, empty or t, set pending-undo-list
to t.  If the redo is undo-in-region, map buffer-undo-list to
'undo-in-region instead of t, if it is an identity mapping, map to
'empty.
(undo-make-selective-list): Only continue when ulist is a proper list.
* test/lisp/simple-tests.el (simple-tests--undo): Add test for
undo-only in region.
(simple-tests--sans-leading-nil): New helper function.
(simple-tests--undo-equiv-table): New test for 'undo-equiv-table'.
lisp/simple.el
test/lisp/simple-tests.el