Function: flymake-proc--read-file-to-temp-buffer

flymake-proc--read-file-to-temp-buffer is a byte-compiled function defined in flymake-proc.el.gz.

Signature

(flymake-proc--read-file-to-temp-buffer FILE-NAME)

Documentation

Insert contents of FILE-NAME into newly created temp buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/flymake-proc.el.gz
(defun flymake-proc--read-file-to-temp-buffer (file-name)
  "Insert contents of FILE-NAME into newly created temp buffer."
  (with-current-buffer (generate-new-buffer
                        (concat "flymake:" (file-name-nondirectory file-name)))
    (insert-file-contents file-name)
    (current-buffer)))