summaryrefslogtreecommitdiff
path: root/lisp/textmodes/reftex-toc.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-03-28 20:53:32 -0400
committerGlenn Morris <rgm@gnu.org>2014-03-28 20:53:32 -0400
commit41116c5ab64bd378b96efed605f0874a3e72604e (patch)
tree32fe770ae75beddc44f0e6f33a285593cfa09e39 /lisp/textmodes/reftex-toc.el
parentdd694335f5f34d2629d2d0e8a93d1f0daf39c418 (diff)
downloademacs-41116c5ab64bd378b96efed605f0874a3e72604e.tar.gz
Manage reftex's internal autoloads automatically
* lisp/textmodes/reftex.el: Manage most autoloads automatically. * lisp/textmodes/reftex-auc.el, lisp/textmodes/reftex-cite.el: * lisp/textmodes/reftex-dcr.el, lisp/textmodes/reftex-global.el: * lisp/textmodes/reftex-index.el, lisp/textmodes/reftex-parse.el: * lisp/textmodes/reftex-ref.el, lisp/textmodes/reftex-sel.el: * lisp/textmodes/reftex-toc.el: Set generated-autoload-file, and add autoload cookies for reftex.el. * lisp/Makefile.in (AUTOGEN_VCS): Add textmodes/reftex.el.
Diffstat (limited to 'lisp/textmodes/reftex-toc.el')
-rw-r--r--lisp/textmodes/reftex-toc.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el
index 59f9de88111..a35c2e114b4 100644
--- a/lisp/textmodes/reftex-toc.el
+++ b/lisp/textmodes/reftex-toc.el
@@ -190,6 +190,7 @@ M-% Global search and replace to rename label at point.
x Switch to TOC of external document (with LaTeX package `xr').
z Jump to a specific section (e.g. '3 z' goes to section 3).")
+;;;###autoload
(defun reftex-toc (&optional rebuild reuse)
"Show the table of contents for the current document.
When called with a raw C-u prefix, rescan the document first."
@@ -319,6 +320,7 @@ SPC=view TAB=goto RET=goto+hide [q]uit [r]escan [l]abels [f]ollow [x]r [?]Help
(reftex-find-start-point (point) offset (get 'reftex-toc :reftex-line))
(setq reftex-last-follow-point (point))))
+;;;###autoload
(defun reftex-toc-recenter (&optional arg)
"Display the TOC window and highlight line corresponding to current position."
(interactive "P")
@@ -1009,6 +1011,7 @@ label prefix determines the wording of a reference."
(let (current-prefix-arg)
(reftex-toc-recenter))))
+;;;###autoload
(defun reftex-toggle-auto-toc-recenter ()
"Toggle the automatic recentering of the TOC window.
When active, leaving point idle will make the TOC window jump to the correct
@@ -1088,3 +1091,7 @@ always show the current section in connection with the option
(reftex-toggle-auto-toc-recenter))))
;;; reftex-toc.el ends here
+
+;; Local Variables:
+;; generated-autoload-file: "reftex.el"
+;; End: