Function: sesman-current-sessions
sesman-current-sessions is a byte-compiled function defined in
sesman.el.
Signature
(sesman-current-sessions SYSTEM &optional CXT-TYPES)
Documentation
Return a list of SYSTEM sessions active in the current context.
Sessions are ordered by the relevance order and linked sessions come first. If
sesman-use-friendly-sessions current sessions consist of linked and friendly
sessions, otherwise only of linked sessions. CXT-TYPES is a list of context
types to consider. Defaults to the list returned from sesman-context-types.
Source Code
;; Defined in ~/.emacs.d/elpa/sesman-20240417.1723/sesman.el
(defun sesman-current-sessions (system &optional cxt-types)
"Return a list of SYSTEM sessions active in the current context.
Sessions are ordered by the relevance order and linked sessions come first. If
`sesman-use-friendly-sessions' current sessions consist of linked and friendly
sessions, otherwise only of linked sessions. CXT-TYPES is a list of context
types to consider. Defaults to the list returned from `sesman-context-types'."
(if sesman-use-friendly-sessions
(delete-dups
(append (sesman--linked-sessions system 'sort cxt-types)
(sesman--friendly-sessions system 'sort)))
(sesman--linked-sessions system 'sort cxt-types)))