# HG changeset patch # User Richard M. Stallman # Date 762569705 0 # Node ID 47d2f8f84309dc429bcb079adb4fc25e483e53da # Parent 54625de47273712ef036f00f8110a3979407c7cb (del_range_1): New function. (del_range): Use it. diff -r 54625de47273 -r 47d2f8f84309 src/insdel.c --- a/src/insdel.c Wed Mar 02 00:53:48 1994 +0000 +++ b/src/insdel.c Wed Mar 02 00:55:05 1994 +0000 @@ -424,6 +424,14 @@ del_range (from, to) register int from, to; { + return del_range_1 (from, to, 1); +} + +/* Like del_range; PREPARE says whether to call prepare_to_modify_buffer. */ + +del_range_1 (from, to, prepare) + register int from, to, prepare; +{ register int numdel; /* Make args be valid */ @@ -441,7 +449,8 @@ if (to < GPT) gap_left (to, 0); - prepare_to_modify_buffer (from, to); + if (prepare) + prepare_to_modify_buffer (from, to); record_delete (from, numdel); MODIFF++;