• Noam Postavsky's avatar
    Fix another case of freed markers in the undo-list (Bug#30931) · daa60233
    Noam Postavsky authored
    * 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 96b8747d)
    daa60233
lisp.h 151 KB