]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert_before_markers_and_inherit): New function.
authorRichard M. Stallman <rms@gnu.org>
Tue, 30 Aug 1994 07:20:23 +0000 (07:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 30 Aug 1994 07:20:23 +0000 (07:20 +0000)
src/insdel.c

index d368cd86ac1aa14eb4349b5c69f8fe196dd50e59..c071d08dc62535787d6f4fa6b309f99a70a117fe 100644 (file)
@@ -464,6 +464,19 @@ insert_before_markers (string, length)
     }
 }
 
+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)