Function: projectile-session--deserialize-file
projectile-session--deserialize-file is a byte-compiled function
defined in projectile.el.
Signature
(projectile-session--deserialize-file RECORD)
Documentation
Recreate the file buffer described by RECORD, or nil when the file is gone.
The file is visited non-interactively - large-file warnings and unsafe
file-local-variable prompts are suppressed - so restoring a session (in
particular on startup) never blocks Emacs on a yes-or-no-p.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-session--deserialize-file (record)
"Recreate the file buffer described by RECORD, or nil when the file is gone.
The file is visited non-interactively - large-file warnings and unsafe
file-local-variable prompts are suppressed - so restoring a session (in
particular on startup) never blocks Emacs on a `yes-or-no-p'."
(let ((file (plist-get record :file)))
(when (and file (file-exists-p file))
(let* ((large-file-warning-threshold nil)
(enable-local-variables :safe)
(buffer (find-file-noselect file)))
(when (buffer-live-p buffer)
(let ((point (plist-get record :point)))
(when (integerp point)
(with-current-buffer buffer
(goto-char (min point (point-max))))))
buffer)))))