insert-buffer-substring-as-yank

insert-buffer-substring-as-yank is a compiled Lisp function in `subr.el'.

(insert-buffer-substring-as-yank BUFFER &optional START END)

Insert before point a part of BUFFER, stripping some text properties.
BUFFER may be a buffer or a buffer name.
Arguments START and END are character positions specifying the substring.
They default to the values of (point-min) and (point-max) in BUFFER.
Before insertion, process text properties according to
`yank-handled-properties' and `yank-excluded-properties'.