Function: projectile-session--adopt-current-tab
projectile-session--adopt-current-tab is a byte-compiled function
defined in projectile.el.
Signature
(projectile-session--adopt-current-tab)
Documentation
Bind the current tab to the current project, when there is one.
Called on mode enable so the tab you're already sitting on is adopted rather than left unowned.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-session--adopt-current-tab ()
"Bind the current tab to the current project, when there is one.
Called on mode enable so the tab you're already sitting on is adopted
rather than left unowned."
(when-let* ((root (projectile-project-root))
(tab (projectile-session--current-tab)))
(unless (projectile-session--tab-root tab)
(projectile-session--set-tab-root tab root)
(projectile-session--refresh-tab-names))))