Function: gptel--insert-file-string
gptel--insert-file-string is a natively compiled function defined in
gptel-request.el.
Signature
(gptel--insert-file-string PATH)
Documentation
Insert at point the contents of the file at PATH as context.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defun gptel--insert-file-string (path)
"Insert at point the contents of the file at PATH as context."
(insert (format "In file `%s`:" (abbreviate-file-name path))
"\n\n```\n")
(let ((pm (point-marker)))
(set-marker-insertion-type pm t)
(insert-file-contents path)
(goto-char pm))
(insert "\n```\n"))