Function: sesman-quit
sesman-quit is an autoloaded, interactive and byte-compiled function
defined in sesman.el.
Signature
(sesman-quit &optional WHICH)
Documentation
Terminate a Sesman session.
When WHICH is nil, kill only the current session; when a single universal argument or 'linked, kill all linked sessions; when a double universal argument, t or 'all, kill all sessions. For programmatic use, WHICH can also be a session or a name of the session, in which case that session is killed.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/sesman-20240417.1723/sesman.el
;;;###autoload
(defun sesman-quit (&optional which)
"Terminate a Sesman session.
When WHICH is nil, kill only the current session; when a single universal
argument or 'linked, kill all linked sessions; when a double universal argument,
t or 'all, kill all sessions. For programmatic use, WHICH can also be a session
or a name of the session, in which case that session is killed."
(interactive "P")
(let* ((system (sesman--system))
(sessions (sesman--on-C-u-u-sessions system which)))
(if (null sessions)
(message "No %s sessions found" system)
(with-temp-message (format "Killing %s %s %s" system
(if (= 1 (length sessions)) "session" "sessions")
(mapcar #'car sessions))
(mapc (lambda (s)
(sesman-unregister system s)
(sesman-quit-session system s))
sessions))
(run-hooks 'sesman-post-command-hook))))