# HG changeset patch # User Richard M. Stallman # Date 778231223 0 # Node ID 011660f7aae9725fd1a96ca6bed528ea46fae75b # Parent abd7ff9a94da4a789e2853728d5811f37a5047f3 (insert_before_markers_and_inherit): New function. diff -r abd7ff9a94da -r 011660f7aae9 src/insdel.c --- 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)