Function: hyrolo-move-to-entry-end

hyrolo-move-to-entry-end is a byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-move-to-entry-end INCLUDE-SUB-ENTRIES)

Documentation

Move point past the end of the current entry, if any.

With optional INCLUDE-SUB-ENTRIES non-nil, move to the end of the entire subtree. Return INCLUDE-SUB-ENTRIES flag value.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-move-to-entry-end (include-sub-entries)
  "Move point past the end of the current entry, if any.
With optional INCLUDE-SUB-ENTRIES non-nil, move to the end of the
entire subtree.  Return INCLUDE-SUB-ENTRIES flag value."
  (if (not include-sub-entries)
      ;; Move to (point-max) if no next heading found and return nil
      (if (derived-mode-p 'hyrolo-mode)
          (hyrolo-outline-next-visible-heading 1)
        (outline-next-heading))
    ;; When point is before the first entry in an Org file,
    ;; `outline-end-of-subtree' can signal an
    ;; `outline-before-first-heading' error within its subcall to
    ;; `outline-back-to-heading' because of advice wrapped around that
    ;; function from "org-compat.el".
    (condition-case ()
	(progn
	  (outline-end-of-subtree)
	  (goto-char (1+ (point))))
      ;; Error or any signal condition (all caught with the 't' symbol)
      ;; means point is before the first buffer heading; move past
      ;; file header to any next entry.
      (t (hyrolo-hdr-move-after-p))))
  include-sub-entries)