Function: sesman-has-sessions-p

sesman-has-sessions-p is a byte-compiled function defined in sesman.el.

Signature

(sesman-has-sessions-p SYSTEM)

Documentation

Return t if there is at least one session registered with SYSTEM.

Source Code

;; Defined in ~/.emacs.d/elpa/sesman-20240417.1723/sesman.el
(defun sesman-has-sessions-p (system)
  "Return t if there is at least one session registered with SYSTEM."
  (let ((system (or system (sesman--system)))
        (found))
    (condition-case nil
        (maphash (lambda (k _)
                   (when (eq (car k) system)
                     (setq found t)
                     (throw 'found nil)))
                 sesman-sessions-hashmap)
      (error))
    found))