Function: helpful--imenu-index
helpful--imenu-index is a byte-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 ~/.emacs.d/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)))