Function: verb-read-file
verb-read-file is a natively compiled function defined in verb.el.
Signature
(verb-read-file FILE &optional CODING-SYSTEM)
Documentation
Return a buffer with the contents of FILE.
If CODING-SYSTEM system is a valid coding system, use it when reading
the file contents (see coding-system-for-read for more information).
Set the buffer's verb-kill-this-buffer variable locally to t.
Additionally, add the verb-lf-keep property to all of the resulting
buffer's text, to prevent function verb-body-lf-to-crlf from
potentially modifying it.
Source Code
;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defun verb-read-file (file &optional coding-system)
"Return a buffer with the contents of FILE.
If CODING-SYSTEM system is a valid coding system, use it when reading
the file contents (see `coding-system-for-read' for more information).
Set the buffer's `verb-kill-this-buffer' variable locally to t.
Additionally, add the `verb-lf-keep' property to all of the resulting
buffer's text, to prevent function `verb-body-lf-to-crlf' from
potentially modifying it."
(with-current-buffer (generate-new-buffer " *verb-temp*")
(buffer-disable-undo)
(let ((coding-system-for-read coding-system))
(insert-file-contents file))
(add-text-properties (point-min) (point-max) '(verb-lf-keep t))
(setq verb-kill-this-buffer t)
(current-buffer)))