Function: Texinfo-reftex-hook
Texinfo-reftex-hook is a byte-compiled function defined in
tex-info.el.
Signature
(Texinfo-reftex-hook)
Documentation
Hook function to plug Texinfo into RefTeX.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex-info.el
(defun Texinfo-reftex-hook ()
"Hook function to plug Texinfo into RefTeX."
;; force recompilation of variables
(dolist (v `((reftex-section-pre-regexp . "@")
;; section post-regexp must contain exactly one group
(reftex-section-post-regexp . "\\([ \t]+\\)")
(reftex-section-info-function . Texinfo-reftex-section-info)
(reftex-default-label-alist-entries . (Texinfo))
(reftex-section-levels
. ,(mapcar
(lambda (x)
(if (string-match "\\(\\`unnumbered\\)\\|\\(heading\\'\\)\\|\\(\\`top\\'\\)"
(car x))
(cons (car x) (- (cadr x)))
(cons (car x) (cadr x))))
texinfo-section-list))))
(set (make-local-variable (car v)) (cdr v)))
(reftex-ensure-compiled-variables))