changeset 8668:011660f7aae9

(insert_before_markers_and_inherit): New function.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Aug 1994 07:20:23 +0000
parents abd7ff9a94da
children 62d1138d10de
files src/insdel.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Tue Aug 30 07:18:47 1994 +0000
+++ b/src/insdel.c	Tue Aug 30 07:20:23 1994 +0000
@@ -464,6 +464,19 @@
     }
 }
 
+insert_before_markers_and_inherit (string, length)
+     unsigned char *string;
+     register int length;
+{
+  if (length > 0)
+    {
+      register int opoint = PT;
+      insert_1 (string, length, 1);
+      adjust_markers (opoint - 1, opoint, length);
+      signal_after_change (PT-length, 0, length);
+    }
+}
+
 /* Insert part of a Lisp string, relocating markers after.  */
 
 insert_from_string_before_markers (string, pos, length, inherit)