Function: insert-and-inherit

insert-and-inherit is a function defined in editfns.c.

Signature

(insert-and-inherit &rest ARGS)

Documentation

Insert the arguments at point, inheriting properties from adjoining text.

Point and after-insertion markers move forward to end up
 after the inserted text.
Any other markers at the point of insertion remain before the text.

If the current buffer is multibyte, unibyte strings are converted to multibyte for insertion (see unibyte-char-to-multibyte). If the current buffer is unibyte, multibyte strings are converted to unibyte for insertion.

View in manual

Probably introduced at or before Emacs version 19.20.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  general_insert_function (insert_and_inherit, insert_from_string, 1,
			   nargs, args);
  return Qnil;
}