]> 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)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Mar 2018 21:26:25 +0000 (14:26 -0700)
commit96b8747d5c5d747af13fd84d8fe0308ef2a0ea7a
tree1b7cd8463b098f6386b0b8be81f1ab755b6308b9
parent842b3d7412eaed6b2c9f90c3361abb4932ec0b1d
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.
src/alloc.c
src/editfns.c
src/insdel.c
src/lisp.h
test/src/editfns-tests.el