Function: projectile-session--deserializer
projectile-session--deserializer is a byte-compiled function defined
in projectile.el.
Signature
(projectile-session--deserializer KIND)
Documentation
Return the deserialize function able to restore a record of KIND.
Prefer an entry whose key is exactly KIND (a mode symbol or t). Records
produced by a predicate-keyed serializer are stored under the buffer's
major mode, which no assq can match, so fall back to the first
predicate-keyed entry that carries a deserializer.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-session--deserializer (kind)
"Return the deserialize function able to restore a record of KIND.
Prefer an entry whose key is exactly KIND (a mode symbol or t). Records
produced by a predicate-keyed serializer are stored under the buffer's
major mode, which no `assq' can match, so fall back to the first
predicate-keyed entry that carries a deserializer."
(let ((exact (assq kind projectile-session-buffer-serializers)))
(if exact
(cddr exact)
(catch 'found
(dolist (entry projectile-session-buffer-serializers)
(when (and (functionp (car entry)) (cddr entry))
(throw 'found (cddr entry))))
nil))))