Function: eca-workspaces--next-line-matching

eca-workspaces--next-line-matching is a natively compiled function defined in eca-workspaces.el.

Signature

(eca-workspaces--next-line-matching PREDICATE)

Documentation

Move to the next 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--next-line-matching (predicate)
  "Move to the next line matching PREDICATE, or stay put."
  (let ((origin (point))
        (found nil))
    (forward-line 1)
    (while (and (not (eobp)) (not found))
      (if (funcall predicate)
          (setq found t)
        (forward-line 1)))
    (unless found
      (goto-char origin))
    found))