Function: projectile-session--maybe-autosave

projectile-session--maybe-autosave is a byte-compiled function defined in projectile.el.

Signature

(projectile-session--maybe-autosave)

Documentation

Save the current project's session when autosave is enabled.

Wired onto projectile-before-switch-project-hook, where the current project is still the one being switched away from.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-session--maybe-autosave ()
  "Save the current project's session when autosave is enabled.
Wired onto `projectile-before-switch-project-hook', where the current
project is still the one being switched away from."
  (when projectile-session-autosave
    (ignore-errors (projectile-session-save))))