Function: actypes::text-toc
actypes::text-toc is an interactive and byte-compiled function defined
in hactypes.el.
Signature
(actypes::text-toc SECTION)
Documentation
Jump to the text file SECTION referenced by a table of contents entry at point.
SECTION is a string and can be just the leading part of a section heading.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hactypes.el
(defact text-toc (section)
"Jump to the text file SECTION referenced by a table of contents entry at point.
SECTION is a string and can be just the leading part of a section heading."
(interactive "sGo to section named: ")
(when (stringp section)
(setq section (string-trim section))
(if (string-match "\\`\\(\\*+\\)[ \t]*" section)
(actypes::link-to-regexp-match
(concat "^[ \t]*" (regexp-quote (match-string 1 section))
"[ \t]*" (regexp-quote (substring section (match-end 0))))
2 (current-buffer) t)
(actypes::link-to-regexp-match (concat "^[ \t]*" (regexp-quote section))
2 (current-buffer) t))
(while (and (= (forward-line -1) 0)
(looking-at "[ \t]*[-=][-=]")))
(forward-line 1)
(recenter 0)))