Function: sesman-current-session

sesman-current-session is a byte-compiled function defined in sesman.el.

Signature

(sesman-current-session SYSTEM &optional CXT-TYPES)

Documentation

Get the most relevant current session for the SYSTEM.

CXT-TYPES is a list of context types to consider.

Source Code

;; Defined in ~/.emacs.d/elpa/sesman-20240417.1723/sesman.el
(defun sesman-current-session (system &optional cxt-types)
  "Get the most relevant current session for the SYSTEM.
CXT-TYPES is a list of context types to consider."
  (or (car (sesman--linked-sessions system 'sort cxt-types))
      (when sesman-use-friendly-sessions
        (car (sesman--friendly-sessions system 'sort)))))