Function: nnheader-insert-file-contents

nnheader-insert-file-contents is a byte-compiled function defined in nnheader.el.gz.

Signature

(nnheader-insert-file-contents FILENAME &optional VISIT BEG END REPLACE)

Documentation

Like insert-file-contents, q.v., but only reads in the file.

A buffer may be modified in several ways after reading into the buffer due to advanced Emacs features, such as file-name-handlers, format decoding, find-file-hook, etc.
  This function ensures that none of these modifications will take place.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnheader.el.gz
(defun nnheader-insert-file-contents (filename &optional visit beg end replace)
  "Like `insert-file-contents', q.v., but only reads in the file.
A buffer may be modified in several ways after reading into the buffer due
to advanced Emacs features, such as file-name-handlers, format decoding,
find-file-hook, etc.
  This function ensures that none of these modifications will take place."
  (let ((coding-system-for-read nnheader-file-coding-system))
    (mm-insert-file-contents filename visit beg end replace)))