aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 7d032a7ca4c..88dfba1f910 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3198,6 +3198,8 @@ differences between the two buffers. */)
3198 return Qnil; 3198 return Qnil;
3199 } 3199 }
3200 3200
3201 ptrdiff_t count = SPECPDL_INDEX ();
3202
3201 /* FIXME: It is not documented how to initialize the contents of the 3203 /* FIXME: It is not documented how to initialize the contents of the
3202 context structure. This code cargo-cults from the existing 3204 context structure. This code cargo-cults from the existing
3203 caller in src/analyze.c of GNU Diffutils, which appears to 3205 caller in src/analyze.c of GNU Diffutils, which appears to
@@ -3231,7 +3233,6 @@ differences between the two buffers. */)
3231 eassert (! early_abort); 3233 eassert (! early_abort);
3232 3234
3233 Fundo_boundary (); 3235 Fundo_boundary ();
3234 ptrdiff_t count = SPECPDL_INDEX ();
3235 record_unwind_protect_excursion (); 3236 record_unwind_protect_excursion ();
3236 3237
3237 ptrdiff_t i = size_a; 3238 ptrdiff_t i = size_a;
@@ -3279,10 +3280,8 @@ differences between the two buffers. */)
3279 --i; 3280 --i;
3280 --j; 3281 --j;
3281 } 3282 }
3282 unbind_to (count, Qnil);
3283 SAFE_FREE ();
3284 3283
3285 return Qnil; 3284 return SAFE_FREE_UNBIND_TO (count, Qnil);
3286} 3285}
3287 3286
3288static void 3287static void
@@ -4885,7 +4884,6 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message)
4885 if (buf == initial_buffer) 4884 if (buf == initial_buffer)
4886 { 4885 {
4887 buf = xmalloc (bufsize); 4886 buf = xmalloc (bufsize);
4888 sa_must_free = true;
4889 buf_save_value_index = SPECPDL_INDEX (); 4887 buf_save_value_index = SPECPDL_INDEX ();
4890 record_unwind_protect_ptr (xfree, buf); 4888 record_unwind_protect_ptr (xfree, buf);
4891 memcpy (buf, initial_buffer, used); 4889 memcpy (buf, initial_buffer, used);