Function: helpful--imenu-index
helpful--imenu-index is a natively compiled function defined in
helpful.el.
Signature
(helpful--imenu-index)
Documentation
Return a list of headings in the current buffer, suitable for imenu.
Source Code
;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/elpa/helpful-20250408.334/helpful.el
(defun helpful--imenu-index ()
"Return a list of headings in the current buffer, suitable for
imenu."
(let (headings)
(goto-char (point-min))
(while (not (eobp))
(when (eq (get-text-property (point) 'face)
'helpful-heading)
(push
(cons
(buffer-substring-no-properties
(line-beginning-position) (line-end-position))
(line-beginning-position))
headings))
(forward-line))
(nreverse headings)))