Function: kotl-mode:goto-heading
kotl-mode:goto-heading is a byte-compiled function defined in
kotl-mode.el.
Signature
(kotl-mode:goto-heading HEADING)
Documentation
Move to a Koutline cell HEADING (a string) at the start of a cell.
The matched heading must be followed by either a colon or a newline. Return t if found, else nil (in which case, point does not move).
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:goto-heading (heading)
"Move to a Koutline cell HEADING (a string) at the start of a cell.
The matched heading must be followed by either a colon or a
newline. Return t if found, else nil (in which case, point does
not move)."
(let ((opoint (point))
npoint
match-flag)
(kotl-mode:beginning-of-buffer)
(while (and (not (and (setq match-flag (re-search-forward (format "\\b%s[ \t]*[:\n\r]" heading) nil t))
(setq npoint (point))
(progn (goto-char (match-beginning 0))
(kotl-mode:bocp))))
match-flag)
(goto-char npoint))
(if match-flag
t
(goto-char opoint)
nil)))