Function: projectile-session--maybe-restore-on-startup

projectile-session--maybe-restore-on-startup is a byte-compiled function defined in projectile.el.

Signature

(projectile-session--maybe-restore-on-startup)

Documentation

Reopen all saved sessions at startup when configured to.

Wired onto emacs-startup-hook while projectile-session-mode(var)/projectile-session-mode(fun) is on; the restore is gated on projectile-session-restore-on-startup. Errors are swallowed so a restore problem can't abort the rest of Emacs startup.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-session--maybe-restore-on-startup ()
  "Reopen all saved sessions at startup when configured to.
Wired onto `emacs-startup-hook' while `projectile-session-mode' is on; the
restore is gated on `projectile-session-restore-on-startup'.  Errors are
swallowed so a restore problem can't abort the rest of Emacs startup."
  (when projectile-session-restore-on-startup
    (ignore-errors (projectile-session-restore-all))))