Function: eca-workspaces--find-entity

eca-workspaces--find-entity is a natively compiled function defined in eca-workspaces.el.

Signature

(eca-workspaces--find-entity ENTITY)

Documentation

Return the position of the line showing ENTITY, or nil.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-workspaces.el
(defun eca-workspaces--find-entity (entity)
  "Return the position of the line showing ENTITY, or nil."
  (when entity
    (save-excursion
      (goto-char (point-min))
      (let ((found nil))
        (while (and (not found) (not (eobp)))
          (if (and (equal (car entity)
                          (get-text-property (point) 'eca-workspaces-session-id))
                   (equal (cdr entity)
                          (get-text-property (point) 'eca-workspaces-chat-id)))
              (setq found (point))
            (forward-line 1)))
        found))))