Function: projectile-serialize

projectile-serialize is a byte-compiled function defined in projectile.el.

Signature

(projectile-serialize DATA FILENAME)

Documentation

Serialize DATA to FILENAME.

The saved data can be restored with projectile-unserialize.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
;;; Serialization
(defun projectile-serialize (data filename)
  "Serialize DATA to FILENAME.

The saved data can be restored with `projectile-unserialize'."
  (if (file-writable-p filename)
    (with-temp-file filename
      (insert (let (print-length) (prin1-to-string data))))
    (display-warning 'projectile (format "Cache file '%s' is not writable" filename) :warning)))