Function: insert-buffer
insert-buffer is an interactive and byte-compiled function defined in
simple.el.gz.
Signature
(insert-buffer BUFFER)
Documentation
Insert after point the contents of BUFFER.
Puts mark after the inserted text. BUFFER may be a buffer or a buffer name.
Probably introduced at or before Emacs version 19.29.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun insert-buffer (buffer)
"Insert after point the contents of BUFFER.
Puts mark after the inserted text.
BUFFER may be a buffer or a buffer name."
(declare (interactive-only insert-buffer-substring))
(interactive
(list
(progn
(barf-if-buffer-read-only)
(read-buffer "Insert buffer: "
(if (eq (selected-window) (next-window))
(other-buffer (current-buffer))
(window-buffer (next-window)))
t))))
(push-mark
(save-excursion
(insert-buffer-substring (get-buffer buffer))
(point)))
nil)