Function: eca-workspaces--previous-line-matching
eca-workspaces--previous-line-matching is a natively compiled function
defined in eca-workspaces.el.
Signature
(eca-workspaces--previous-line-matching PREDICATE)
Documentation
Move to the previous line matching PREDICATE, or stay put.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-workspaces.el
(defun eca-workspaces--previous-line-matching (predicate)
"Move to the previous line matching PREDICATE, or stay put."
(let ((origin (point))
(found nil))
(beginning-of-line)
(while (and (not (bobp)) (not found))
(forward-line -1)
(when (funcall predicate)
(setq found t)))
(unless found
(goto-char origin))
found))