diff options
| author | Noam Postavsky | 2018-03-30 16:44:24 -0400 |
|---|---|---|
| committer | Paul Eggert | 2018-03-30 14:26:25 -0700 |
| commit | 96b8747d5c5d747af13fd84d8fe0308ef2a0ea7a (patch) | |
| tree | 1b7cd8463b098f6386b0b8be81f1ab755b6308b9 /src/lisp.h | |
| parent | 842b3d7412eaed6b2c9f90c3361abb4932ec0b1d (diff) | |
| download | emacs-96b8747d5c5d747af13fd84d8fe0308ef2a0ea7a.tar.gz emacs-96b8747d5c5d747af13fd84d8fe0308ef2a0ea7a.zip | |
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.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index b931d23bf38..f471b216587 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3812,7 +3812,6 @@ extern Lisp_Object make_save_funcptr_ptr_obj (void (*) (void), void *, | |||
| 3812 | extern Lisp_Object make_save_memory (Lisp_Object *, ptrdiff_t); | 3812 | extern Lisp_Object make_save_memory (Lisp_Object *, ptrdiff_t); |
| 3813 | extern void free_save_value (Lisp_Object); | 3813 | extern void free_save_value (Lisp_Object); |
| 3814 | extern Lisp_Object build_overlay (Lisp_Object, Lisp_Object, Lisp_Object); | 3814 | extern Lisp_Object build_overlay (Lisp_Object, Lisp_Object, Lisp_Object); |
| 3815 | extern void free_marker (Lisp_Object); | ||
| 3816 | extern void free_cons (struct Lisp_Cons *); | 3815 | extern void free_cons (struct Lisp_Cons *); |
| 3817 | extern void init_alloc_once (void); | 3816 | extern void init_alloc_once (void); |
| 3818 | extern void init_alloc (void); | 3817 | extern void init_alloc (void); |