]> 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 16:48:13 +0000 (12:48 -0400)
commitdaa602338fd91aced720b5555c8b6ed389383831
treeb859b9a568d8b18d0f67cdfeee62c93a3bbcc299
parent7460840a6c9ab713e8ccc470011495fdb86a61d7
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