Function: hyrolo-move-forward

hyrolo-move-forward is a byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-move-forward FUNC &rest ARGS)

Documentation

Move forward past any file header when bobp and apply FUNC to ARGS.

If FUNC is a lambda (not a function symbol), then temporarily narrow to the current match buffer before applying FUNC.

Return final point.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-move-forward (func &rest args)
  "Move forward past any file header when `bobp' and apply FUNC to ARGS.
If FUNC is a lambda (not a function symbol), then temporarily
narrow to the current match buffer before applying FUNC.

Return final point."
  (when (bobp)
    (hyrolo-hdr-to-last-line-p))
  (condition-case nil
      (hyrolo-funcall-match
       (lambda ()
	 (apply func args))
       ;; Narrow to current match buffer when given a lambda func.
       (not (symbolp func)))
    ;; Error means point is before the first buffer heading; move
    ;; past file header to any next entry.
    (error (hyrolo-hdr-move-after-p)))
  (point))