Function: insert-file

insert-file is an interactive and byte-compiled function defined in files.el.gz.

Signature

(insert-file FILENAME)

Documentation

Insert contents of file FILENAME into buffer after point.

Set mark after the inserted text.

This function is meant for the user to run interactively.
Don't call it from programs! Use insert-file-contents instead.
(Its calling sequence is different; see its documentation).

Probably introduced at or before Emacs version 15.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun insert-file (filename)
  "Insert contents of file FILENAME into buffer after point.
Set mark after the inserted text.

This function is meant for the user to run interactively.
Don't call it from programs!  Use `insert-file-contents' instead.
\(Its calling sequence is different; see its documentation)."
  (declare (interactive-only insert-file-contents))
  (interactive "*fInsert file: ")
  (insert-file-1 filename #'insert-file-contents))