After delete, record point location in undo.
commit7592cb9d2a5d68dcb556c87226e38588ce555bd9
authorPhillip Lord <phillip.lord@russet.org.uk>
Thu, 19 Nov 2015 15:57:55 +0000 (19 15:57 +0000)
committerPhillip Lord <phillip.lord@russet.org.uk>
Thu, 26 Nov 2015 17:57:11 +0000 (26 17:57 +0000)
treed845f1a53b432956e3c1711b586d938aac50996a
parent02cd9cb8afd9510e3bdb20ce7148d1b9a6aa9d12
After delete, record point location in undo.

Addresses Bug #21968.

* lisp/simple.el (undo-auto--add-boundary): Clean up code to
better support intercalating calls.
* src/keyboard.c,src/keyboard.h (command_loop_1): Store value of
point and current buffer before each command.
* src/undo.c (record_point): Now only record the point.
* src/undo.c (prepare_record): Functionality removed form
record_point.
* src/undo.c (record_delete): Check if point needs recording.
* src/undo.c (undo-boundary): Record value of point before each
boundary.
* test/automated/simple-test.el: New tests.

Conflicts:
src/undo.c
lisp/simple.el
src/keyboard.c
src/keyboard.h
src/undo.c
test/automated/simple-test.el