Function: html-imenu-index
html-imenu-index is a byte-compiled function defined in
sgml-mode.el.gz.
Signature
(html-imenu-index)
Documentation
Return a table of contents for an HTML buffer for use with Imenu.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/sgml-mode.el.gz
(defun html-imenu-index ()
"Return a table of contents for an HTML buffer for use with Imenu."
(let (toc-index)
(save-excursion
(goto-char (point-min))
(while (re-search-forward html-imenu-regexp nil t)
(setq toc-index
(cons (cons (concat (make-string
(* 2 (1- (string-to-number (match-string 1))))
?\s)
(match-string 3))
(line-beginning-position))
toc-index))))
(nreverse toc-index)))