changeset 6126:47d2f8f84309

(del_range_1): New function. (del_range): Use it.
author Richard M. Stallman <rms@gnu.org>
date Wed, 02 Mar 1994 00:55:05 +0000
parents 54625de47273
children df18a19a047d
files src/insdel.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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++;