]> git.eshelyaron.com Git - emacs.git/commit
Fix missing point information in undo
authorPhillip Lord <phillip.lord@russet.org.uk>
Thu, 30 Jun 2016 21:06:00 +0000 (22:06 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Tue, 5 Jul 2016 08:27:59 +0000 (09:27 +0100)
commitd4c6774f40b6ae1fad091f66e8e43913bc9a2724
treee86c38d23d44ecaf095ad79eb0a900dbac13a386
parent3a9d6296b35e5317c497674d5725eb52699bd3b8
Fix missing point information in undo

* src/undo.c (record_insert): Use record_point instead of
  prepare_record, and do so unconditionally.
  (prepare_record): Do not record first change.
  (record_point): Now conditional on state before the last command.
  (record_delete): Call record_point unconditionally.
  (record_property_change): Use prepare_record.
  (record_marker_adjustments): Use prepare_record.

Addresses Bug# 21722
src/undo.c
test/automated/simple-test.el