Change algorithm used to adjust positions for undo in region
commit95b77fa61cac75082e8939c06920fb8ea218fc04
authorBarry O'Reilly <gundaetiapo@gmail.com>
Thu, 1 May 2014 23:25:28 +0000 (1 19:25 -0400)
committerBarry O'Reilly <gundaetiapo@gmail.com>
Thu, 1 May 2014 23:25:28 +0000 (1 19:25 -0400)
treec41ca218dedeaa738df6eac96fb4f729ea506762
parent49f80bcec38d365d306689513d3600c89971f62d
Change algorithm used to adjust positions for undo in region

* simple.el (undo-make-selective-list): New algorithm fixes
incorrectness of position adjustments when undoing in region.
(Bug#17235)
(undo-elt-crosses-region): Make obsolete.
(undo-adjust-elt, undo-adjust-beg-end, undo-adjust-pos): New
functions to adjust positions using undo-deltas.
* automated/undo-tests.el (undo-test-region-deletion): New test to
demonstrate bug#17235.
(undo-test-region-example): New test to verify example given in
comments for undo-make-selective-list.
lisp/ChangeLog
lisp/simple.el
test/ChangeLog
test/automated/undo-tests.el