]> git.eshelyaron.com Git - emacs.git/commit
Fix another case of freed markers in the undo-list (Bug#30931)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 30 Mar 2018 20:44:24 +0000 (16:44 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 3 Jun 2018 01:18:45 +0000 (21:18 -0400)
commit9c78312a059bf21e7669b6d864d0ce6aa475696e
treee829f7cfbef763fd57aadb0389807c3b9efcc197
parent4491b27ffab033b2e726dd38170398750dabd18f
Fix another case of freed markers in the undo-list (Bug#30931)

* src/alloc.c (free_marker): Remove.
* src/editfns.c (save_restriction_restore):
* src/insdel.c (signal_before_change): Detach the markers from the
buffer when we're done with them instead of calling free_marker on
them.
* test/src/editfns-tests.el (delete-region-undo-markers-1)
(delete-region-undo-markers-2): New tests.

(cherry picked from commit 96b8747d5c5d747af13fd84d8fe0308ef2a0ea7a)
src/alloc.c
src/editfns.c
src/insdel.c
src/lisp.h
test/src/editfns-tests.el