aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Lord2015-12-15 21:51:12 +0000
committerPhillip Lord2015-12-17 20:42:14 +0000
commita2e6ed34b60c10cd63070b417c1bbd9fce82df63 (patch)
tree63a8898ce6b5670f04c1f913bca53880bfe14179
parent23b5c22703eeee7b4fe6608ce12ffe3b87794933 (diff)
downloademacs-a2e6ed34b60c10cd63070b417c1bbd9fce82df63.tar.gz
emacs-a2e6ed34b60c10cd63070b417c1bbd9fce82df63.zip
reftex generate autoloads to non versioned file.
* lisp/Makefile.in: Add reftex-loaddefs to autogen files * lisp/textmodes/reftex.el: Remove autoloads. * 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: Update autoload file-local. * test/lisp/textmodes/reftex-tests.el: Add test of an autoloaded function.
-rw-r--r--lisp/Makefile.in3
-rw-r--r--lisp/textmodes/reftex-auc.el2
-rw-r--r--lisp/textmodes/reftex-cite.el2
-rw-r--r--lisp/textmodes/reftex-dcr.el2
-rw-r--r--lisp/textmodes/reftex-global.el2
-rw-r--r--lisp/textmodes/reftex-index.el2
-rw-r--r--lisp/textmodes/reftex-parse.el2
-rw-r--r--lisp/textmodes/reftex-ref.el2
-rw-r--r--lisp/textmodes/reftex-sel.el2
-rw-r--r--lisp/textmodes/reftex-toc.el2
-rw-r--r--lisp/textmodes/reftex.el699
-rw-r--r--test/lisp/textmodes/reftex-tests.el15
12 files changed, 28 insertions, 707 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 2ad16ed4070..c1ad46da700 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -87,7 +87,8 @@ AUTOGENEL = loaddefs.el \
87 cedet/semantic/loaddefs.el \ 87 cedet/semantic/loaddefs.el \
88 cedet/ede/loaddefs.el \ 88 cedet/ede/loaddefs.el \
89 cedet/srecode/loaddefs.el \ 89 cedet/srecode/loaddefs.el \
90 org/org-loaddefs.el 90 org/org-loaddefs.el \
91 textmodes/reftex-loaddefs.el
91 92
92# Set load-prefer-newer for the benefit of the non-bootstrappers. 93# Set load-prefer-newer for the benefit of the non-bootstrappers.
93BYTE_COMPILE_FLAGS = \ 94BYTE_COMPILE_FLAGS = \
diff --git a/lisp/textmodes/reftex-auc.el b/lisp/textmodes/reftex-auc.el
index bbad065c4ba..b2629a5a5ae 100644
--- a/lisp/textmodes/reftex-auc.el
+++ b/lisp/textmodes/reftex-auc.el
@@ -237,5 +237,5 @@ of ENTRY-LIST is a list of cons cells (\"MACRONAME\" . LEVEL). See
237;;; reftex-auc.el ends here 237;;; reftex-auc.el ends here
238 238
239;; Local Variables: 239;; Local Variables:
240;; generated-autoload-file: "reftex.el" 240;; generated-autoload-file: "reftex-loaddefs.el"
241;; End: 241;; End:
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el
index a35d41109e6..b2229d557b9 100644
--- a/lisp/textmodes/reftex-cite.el
+++ b/lisp/textmodes/reftex-cite.el
@@ -1262,5 +1262,5 @@ created files in the variables `reftex-create-bibtex-header' or
1262;;; reftex-cite.el ends here 1262;;; reftex-cite.el ends here
1263 1263
1264;; Local Variables: 1264;; Local Variables:
1265;; generated-autoload-file: "reftex.el" 1265;; generated-autoload-file: "reftex-loaddefs.el"
1266;; End: 1266;; End:
diff --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el
index 60cb1f65257..8601294ee73 100644
--- a/lisp/textmodes/reftex-dcr.el
+++ b/lisp/textmodes/reftex-dcr.el
@@ -488,5 +488,5 @@ Calling this function several times find successive citation locations."
488;;; reftex-dcr.el ends here 488;;; reftex-dcr.el ends here
489 489
490;; Local Variables: 490;; Local Variables:
491;; generated-autoload-file: "reftex.el" 491;; generated-autoload-file: "reftex-loaddefs.el"
492;; End: 492;; End:
diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el
index 15d42fe7b02..94635c0c122 100644
--- a/lisp/textmodes/reftex-global.el
+++ b/lisp/textmodes/reftex-global.el
@@ -477,5 +477,5 @@ With no argument, this command toggles
477;;; reftex-global.el ends here 477;;; reftex-global.el ends here
478 478
479;; Local Variables: 479;; Local Variables:
480;; generated-autoload-file: "reftex.el" 480;; generated-autoload-file: "reftex-loaddefs.el"
481;; End: 481;; End:
diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el
index 7e961e83406..47ba14b02f8 100644
--- a/lisp/textmodes/reftex-index.el
+++ b/lisp/textmodes/reftex-index.el
@@ -2119,5 +2119,5 @@ Does not do a save-excursion."
2119;;; reftex-index.el ends here 2119;;; reftex-index.el ends here
2120 2120
2121;; Local Variables: 2121;; Local Variables:
2122;; generated-autoload-file: "reftex.el" 2122;; generated-autoload-file: "reftex-loaddefs.el"
2123;; End: 2123;; End:
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el
index f57113177c5..d27989ade05 100644
--- a/lisp/textmodes/reftex-parse.el
+++ b/lisp/textmodes/reftex-parse.el
@@ -1131,5 +1131,5 @@ When LEVEL is non-nil, increase section numbers on that level."
1131;;; reftex-parse.el ends here 1131;;; reftex-parse.el ends here
1132 1132
1133;; Local Variables: 1133;; Local Variables:
1134;; generated-autoload-file: "reftex.el" 1134;; generated-autoload-file: "reftex-loaddefs.el"
1135;; End: 1135;; End:
diff --git a/lisp/textmodes/reftex-ref.el b/lisp/textmodes/reftex-ref.el
index df78447defb..3d44e5a879d 100644
--- a/lisp/textmodes/reftex-ref.el
+++ b/lisp/textmodes/reftex-ref.el
@@ -881,5 +881,5 @@ Optional prefix argument OTHER-WINDOW goes to the label in another window."
881;;; reftex-ref.el ends here 881;;; reftex-ref.el ends here
882 882
883;; Local Variables: 883;; Local Variables:
884;; generated-autoload-file: "reftex.el" 884;; generated-autoload-file: "reftex-loaddefs.el"
885;; End: 885;; End:
diff --git a/lisp/textmodes/reftex-sel.el b/lisp/textmodes/reftex-sel.el
index 643dbfb5a35..1948d9f96c3 100644
--- a/lisp/textmodes/reftex-sel.el
+++ b/lisp/textmodes/reftex-sel.el
@@ -745,5 +745,5 @@ Cycle in reverse order if optional argument REVERSE is non-nil."
745;;; reftex-sel.el ends here 745;;; reftex-sel.el ends here
746 746
747;; Local Variables: 747;; Local Variables:
748;; generated-autoload-file: "reftex.el" 748;; generated-autoload-file: "reftex-loaddefs.el"
749;; End: 749;; End:
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el
index bdae6e54ef3..87f7944c7f0 100644
--- a/lisp/textmodes/reftex-toc.el
+++ b/lisp/textmodes/reftex-toc.el
@@ -1111,5 +1111,5 @@ always show the current section in connection with the option
1111;;; reftex-toc.el ends here 1111;;; reftex-toc.el ends here
1112 1112
1113;; Local Variables: 1113;; Local Variables:
1114;; generated-autoload-file: "reftex.el" 1114;; generated-autoload-file: "reftex-loaddefs.el"
1115;; End: 1115;; End:
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 84efa7a5b21..b29a56a4db5 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -70,7 +70,8 @@
70(require 'reftex-vars) 70(require 'reftex-vars)
71 71
72 72
73;;; Autoloads - see end for automatic autoloads 73;;; Autoloads to ensure loading of support files when necessary
74(require 'reftex-loaddefs)
74 75
75;; We autoload tons of functions from these files, but some have 76;; We autoload tons of functions from these files, but some have
76;; a single function that needs to be globally autoloaded. 77;; a single function that needs to be globally autoloaded.
@@ -2394,702 +2395,6 @@ Your bug report will be posted to the AUCTeX bug reporting list.
2394 2395
2395(setq reftex-tables-dirty t) ; in case this file is evaluated by hand 2396(setq reftex-tables-dirty t) ; in case this file is evaluated by hand
2396 2397
2397
2398;;; Start of automatically extracted autoloads.
2399
2400;;;### (autoloads nil "reftex-auc" "reftex-auc.el" "cf606f7918831321cb46f254436dc66e")
2401;;; Generated autoloads from reftex-auc.el
2402
2403(autoload 'reftex-arg-label "reftex-auc" "\
2404Use `reftex-label', `reftex-reference' or AUCTeX's code to insert label arg.
2405What is being used depends upon `reftex-plug-into-AUCTeX'.
2406
2407\(fn OPTIONAL &optional PROMPT DEFINITION)" nil nil)
2408
2409(autoload 'reftex-arg-cite "reftex-auc" "\
2410Use `reftex-citation' or AUCTeX's code to insert a cite-key macro argument.
2411What is being used depends upon `reftex-plug-into-AUCTeX'.
2412
2413\(fn OPTIONAL &optional PROMPT DEFINITION)" nil nil)
2414
2415(autoload 'reftex-arg-index-tag "reftex-auc" "\
2416Prompt for an index tag with completion.
2417This is the name of an index, not the entry.
2418
2419\(fn OPTIONAL &optional PROMPT &rest ARGS)" nil nil)
2420
2421(autoload 'reftex-arg-index "reftex-auc" "\
2422Prompt for an index entry completing with known entries.
2423Completion is specific for just one index, if the macro or a tag
2424argument identify one of multiple indices.
2425
2426\(fn OPTIONAL &optional PROMPT &rest ARGS)" nil nil)
2427
2428(autoload 'reftex-plug-into-AUCTeX "reftex-auc" "\
2429
2430
2431\(fn)" nil nil)
2432
2433(autoload 'reftex-toggle-plug-into-AUCTeX "reftex-auc" "\
2434Toggle Interface between AUCTeX and RefTeX on and off.
2435
2436\(fn)" t nil)
2437
2438(autoload 'reftex-add-label-environments "reftex-auc" "\
2439Add label environment descriptions to `reftex-label-alist-style'.
2440The format of ENTRY-LIST is exactly like `reftex-label-alist'. See there
2441for details.
2442This function makes it possible to support RefTeX from AUCTeX style files.
2443The entries in ENTRY-LIST will be processed after the user settings in
2444`reftex-label-alist', and before the defaults (specified in
2445`reftex-default-label-alist-entries'). Any changes made to
2446`reftex-label-alist-style' will raise a flag to the effect that
2447the label information is recompiled on next use.
2448
2449\(fn ENTRY-LIST)" nil nil)
2450
2451(defalias 'reftex-add-to-label-alist 'reftex-add-label-environments)
2452
2453(autoload 'reftex-add-section-levels "reftex-auc" "\
2454Add entries to the value of `reftex-section-levels'.
2455The added values are kept local to the current document. The format
2456of ENTRY-LIST is a list of cons cells (\"MACRONAME\" . LEVEL). See
2457`reftex-section-levels' for an example.
2458
2459\(fn ENTRY-LIST)" nil nil)
2460
2461(autoload 'reftex-notice-new-section "reftex-auc" "\
2462
2463
2464\(fn)" nil nil)
2465
2466;;;***
2467
2468;;;### (autoloads nil "reftex-cite" "reftex-cite.el" "7eaa61c05a6578999ea68f1be0fbcf49")
2469;;; Generated autoloads from reftex-cite.el
2470
2471(autoload 'reftex-default-bibliography "reftex-cite" "\
2472Return the expanded value of variable `reftex-default-bibliography'.
2473The expanded value is cached.
2474
2475\(fn)" nil nil)
2476
2477(autoload 'reftex-bib-or-thebib "reftex-cite" "\
2478Test if BibTeX or egin{thebibliography} should be used for the citation.
2479Find the bof of the current file
2480
2481\(fn)" nil nil)
2482
2483(autoload 'reftex-get-bibfile-list "reftex-cite" "\
2484Return list of bibfiles for current document.
2485When using the chapterbib or bibunits package you should either
2486use the same database files everywhere, or separate parts using
2487different databases into different files (included into the mater file).
2488Then this function will return the applicable database files.
2489
2490\(fn)" nil nil)
2491
2492(autoload 'reftex-pop-to-bibtex-entry "reftex-cite" "\
2493Find BibTeX KEY in any file in FILE-LIST in another window.
2494If MARK-TO-KILL is non-nil, mark new buffer to kill.
2495If HIGHLIGHT is non-nil, highlight the match.
2496If ITEM in non-nil, search for bibitem instead of database entry.
2497If RETURN is non-nil, just return the entry and restore point.
2498
2499\(fn KEY FILE-LIST &optional MARK-TO-KILL HIGHLIGHT ITEM RETURN)" nil nil)
2500
2501(autoload 'reftex-end-of-bib-entry "reftex-cite" "\
2502
2503
2504\(fn ITEM)" nil nil)
2505
2506(autoload 'reftex-parse-bibtex-entry "reftex-cite" "\
2507Parse BibTeX ENTRY.
2508If ENTRY is nil then parse the entry in current buffer between FROM and TO.
2509If RAW is non-nil, keep double quotes/curly braces delimiting fields.
2510
2511\(fn ENTRY &optional FROM TO RAW)" nil nil)
2512
2513(autoload 'reftex-citation "reftex-cite" "\
2514Make a citation using BibTeX database files.
2515After prompting for a regular expression, scans the buffers with
2516bibtex entries (taken from the \\bibliography command) and offers the
2517matching entries for selection. The selected entry is formatted according
2518to `reftex-cite-format' and inserted into the buffer.
2519
2520If NO-INSERT is non-nil, nothing is inserted, only the selected key returned.
2521
2522FORMAT-KEY can be used to pre-select a citation format.
2523
2524When called with a `C-u' prefix, prompt for optional arguments in
2525cite macros. When called with a numeric prefix, make that many
2526citations. When called with point inside the braces of a `\\cite'
2527command, it will add another key, ignoring the value of
2528`reftex-cite-format'.
2529
2530The regular expression uses an expanded syntax: && is interpreted as `and'.
2531Thus, `aaaa&&bbb' matches entries which contain both `aaaa' and `bbb'.
2532While entering the regexp, completion on knows citation keys is possible.
2533`=' is a good regular expression to match all entries in all files.
2534
2535\(fn &optional NO-INSERT FORMAT-KEY)" t nil)
2536
2537(autoload 'reftex-citep "reftex-cite" "\
2538Call `reftex-citation' with a format selector `?p'.
2539
2540\(fn)" t nil)
2541
2542(autoload 'reftex-citet "reftex-cite" "\
2543Call `reftex-citation' with a format selector `?t'.
2544
2545\(fn)" t nil)
2546
2547(autoload 'reftex-make-cite-echo-string "reftex-cite" "\
2548Format a bibtex ENTRY for the echo area and cache the result.
2549
2550\(fn ENTRY DOCSTRUCT-SYMBOL)" nil nil)
2551
2552(autoload 'reftex-create-bibtex-file "reftex-cite" "\
2553Create a new BibTeX database BIBFILE with all entries referenced in document.
2554The command prompts for a filename and writes the collected
2555entries to that file. Only entries referenced in the current
2556document with any \\cite-like macros are used. The sequence in
2557the new file is the same as it was in the old database.
2558
2559Entries referenced from other entries must appear after all
2560referencing entries.
2561
2562You can define strings to be used as header or footer for the
2563created files in the variables `reftex-create-bibtex-header' or
2564`reftex-create-bibtex-footer' respectively.
2565
2566\(fn BIBFILE)" t nil)
2567
2568;;;***
2569
2570;;;### (autoloads nil "reftex-dcr" "reftex-dcr.el" "08fc5bd6c35f9d6ab4a6ad336d3769c0")
2571;;; Generated autoloads from reftex-dcr.el
2572
2573(autoload 'reftex-view-crossref "reftex-dcr" "\
2574View cross reference of macro at point. Point must be on the KEY
2575argument. When at a `\\ref' macro, show corresponding `\\label'
2576definition, also in external documents (`xr'). When on a label, show
2577a locations where KEY is referenced. Subsequent calls find additional
2578locations. When on a `\\cite', show the associated `\\bibitem' macro or
2579the BibTeX database entry. When on a `\\bibitem', show a `\\cite' macro
2580which uses this KEY. When on an `\\index', show other locations marked
2581by the same index entry.
2582To define additional cross referencing items, use the option
2583`reftex-view-crossref-extra'. See also `reftex-view-crossref-from-bibtex'.
2584With one or two C-u prefixes, enforce rescanning of the document.
2585With argument 2, select the window showing the cross reference.
2586AUTO-HOW is only for the automatic crossref display and is handed through
2587to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'.
2588
2589\(fn &optional ARG AUTO-HOW FAIL-QUIETLY)" t nil)
2590
2591(autoload 'reftex-mouse-view-crossref "reftex-dcr" "\
2592View cross reference of \\ref or \\cite macro where you click.
2593If the macro at point is a \\ref, show the corresponding label definition.
2594If it is a \\cite, show the BibTeX database entry.
2595If there is no such macro at point, search forward to find one.
2596With argument, actually select the window showing the cross reference.
2597
2598\(fn EV)" t nil)
2599
2600(autoload 'reftex-toggle-auto-view-crossref "reftex-dcr" "\
2601Toggle the automatic display of crossref information in the echo area.
2602When active, leaving point idle in the argument of a \\ref or \\cite macro
2603will display info in the echo area.
2604
2605\(fn)" t nil)
2606
2607(autoload 'reftex-view-crossref-from-bibtex "reftex-dcr" "\
2608View location in a LaTeX document which cites the BibTeX entry at point.
2609Since BibTeX files can be used by many LaTeX documents, this function
2610prompts upon first use for a buffer in RefTeX mode. To reset this
2611link to a document, call the function with a prefix arg.
2612Calling this function several times find successive citation locations.
2613
2614\(fn &optional ARG)" t nil)
2615
2616;;;***
2617
2618;;;### (autoloads nil "reftex-global" "reftex-global.el" "5fdd9c2edced0882471f86baf4b4b234")
2619;;; Generated autoloads from reftex-global.el
2620
2621(autoload 'reftex-create-tags-file "reftex-global" "\
2622Create TAGS file by running `etags' on the current document.
2623The TAGS file is also immediately visited with `visit-tags-table'.
2624
2625\(fn)" t nil)
2626
2627(autoload 'reftex-grep-document "reftex-global" "\
2628Run grep query through all files related to this document.
2629With prefix arg, force to rescan document.
2630No active TAGS table is required.
2631
2632\(fn GREP-CMD)" t nil)
2633
2634(autoload 'reftex-search-document "reftex-global" "\
2635Regexp search through all files of the current document.
2636Starts always in the master file. Stops when a match is found.
2637To continue searching for next match, use command \\[tags-loop-continue].
2638No active TAGS table is required.
2639
2640\(fn &optional REGEXP)" t nil)
2641
2642(autoload 'reftex-query-replace-document "reftex-global" "\
2643Do `query-replace-regexp' of FROM with TO over the entire document.
2644Third arg DELIMITED (prefix arg) means replace only word-delimited matches.
2645If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
2646with the command \\[tags-loop-continue].
2647No active TAGS table is required.
2648
2649\(fn &optional FROM TO DELIMITED)" t nil)
2650
2651(autoload 'reftex-find-duplicate-labels "reftex-global" "\
2652Produce a list of all duplicate labels in the document.
2653
2654\(fn)" t nil)
2655
2656(autoload 'reftex-change-label "reftex-global" "\
2657Run `query-replace-regexp' of FROM with TO in all macro arguments.
2658Works on the entire multifile document.
2659If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
2660with the command \\[tags-loop-continue].
2661No active TAGS table is required.
2662
2663\(fn &optional FROM TO)" t nil)
2664
2665(autoload 'reftex-renumber-simple-labels "reftex-global" "\
2666Renumber all simple labels in the document to make them sequentially.
2667Simple labels are the ones created by RefTeX, consisting only of the
2668prefix and a number. After the command completes, all these labels will
2669have sequential numbers throughout the document. Any references to
2670the labels will be changed as well. For this, RefTeX looks at the
2671arguments of any macros which either start or end in the string `ref'.
2672This command should be used with care, in particular in multifile
2673documents. You should not use it if another document refers to this
2674one with the `xr' package.
2675
2676\(fn)" t nil)
2677
2678(autoload 'reftex-save-all-document-buffers "reftex-global" "\
2679Save all documents associated with the current document.
2680The function is useful after a global action like replacing or renumbering
2681labels.
2682
2683\(fn)" t nil)
2684
2685(autoload 'reftex-isearch-minor-mode "reftex-global" "\
2686When on, isearch searches the whole document, not only the current file.
2687This minor mode allows isearch to search through all the files of
2688the current TeX document.
2689
2690With no argument, this command toggles
2691`reftex-isearch-minor-mode'. With a prefix argument ARG, turn
2692`reftex-isearch-minor-mode' on if ARG is positive, otherwise turn it off.
2693
2694\(fn &optional ARG)" t nil)
2695
2696;;;***
2697
2698;;;### (autoloads nil "reftex-index" "reftex-index.el" "29cb6e91c2e06592053e9d543f30f0ea")
2699;;; Generated autoloads from reftex-index.el
2700
2701(autoload 'reftex-index-selection-or-word "reftex-index" "\
2702Put selection or the word near point into the default index macro.
2703This uses the information in `reftex-index-default-macro' to make an index
2704entry. The phrase indexed is the current selection or the word near point.
2705When called with one `C-u' prefix, let the user have a chance to edit the
2706index entry. When called with 2 `C-u' as prefix, also ask for the index
2707macro and other stuff.
2708When called inside TeX math mode as determined by the `texmathp.el' library
2709which is part of AUCTeX, the string is first processed with the
2710`reftex-index-math-format', which see.
2711
2712\(fn &optional ARG PHRASE)" t nil)
2713
2714(autoload 'reftex-index "reftex-index" "\
2715Query for an index macro and insert it along with its arguments.
2716The index macros available are those defined in `reftex-index-macro' or
2717by a call to `reftex-add-index-macros', typically from an AUCTeX style file.
2718RefteX provides completion for the index tag and the index key, and
2719will prompt for other arguments.
2720
2721\(fn &optional CHAR KEY TAG SEL NO-INSERT)" t nil)
2722
2723(autoload 'reftex-index-complete-tag "reftex-index" "\
2724
2725
2726\(fn &optional ITAG OPT-ARGS)" nil nil)
2727
2728(autoload 'reftex-index-select-tag "reftex-index" "\
2729
2730
2731\(fn)" nil nil)
2732
2733(autoload 'reftex-index-complete-key "reftex-index" "\
2734
2735
2736\(fn &optional TAG OPTIONAL INITIAL)" nil nil)
2737
2738(autoload 'reftex-index-show-entry "reftex-index" "\
2739
2740
2741\(fn DATA &optional NO-REVISIT)" nil nil)
2742
2743(autoload 'reftex-display-index "reftex-index" "\
2744Display a buffer with an index compiled from the current document.
2745When the document has multiple indices, first prompts for the correct one.
2746When index support is turned off, offer to turn it on.
2747With one or two `C-u' prefixes, rescan document first.
2748With prefix 2, restrict index to current document section.
2749With prefix 3, restrict index to region.
2750
2751\(fn &optional TAG OVERRIDING-RESTRICTION REDO &rest LOCATIONS)" t nil)
2752
2753(autoload 'reftex-index-phrase-selection-or-word "reftex-index" "\
2754Add current selection or word at point to the phrases buffer.
2755When you are in transient-mark-mode and the region is active, the
2756selection will be used - otherwise the word at point.
2757You get a chance to edit the entry in the phrases buffer - finish with
2758`C-c C-c'.
2759
2760\(fn ARG)" t nil)
2761
2762(autoload 'reftex-index-visit-phrases-buffer "reftex-index" "\
2763Switch to the phrases buffer, initialize if empty.
2764
2765\(fn)" t nil)
2766
2767(autoload 'reftex-index-phrases-mode "reftex-index" "\
2768Major mode for managing the Index phrases of a LaTeX document.
2769This buffer was created with RefTeX.
2770
2771To insert new phrases, use
2772 - `C-c \\' in the LaTeX document to copy selection or word
2773 - `\\[reftex-index-new-phrase]' in the phrases buffer.
2774
2775To index phrases use one of:
2776
2777\\[reftex-index-this-phrase] index current phrase
2778\\[reftex-index-next-phrase] index next phrase (or N with prefix arg)
2779\\[reftex-index-all-phrases] index all phrases
2780\\[reftex-index-remaining-phrases] index current and following phrases
2781\\[reftex-index-region-phrases] index the phrases in the region
2782
2783You can sort the phrases in this buffer with \\[reftex-index-sort-phrases].
2784To display information about the phrase at point, use \\[reftex-index-phrases-info].
2785
2786For more information see the RefTeX User Manual.
2787
2788Here are all local bindings.
2789
2790\\{reftex-index-phrases-mode-map}
2791
2792\(fn)" t nil)
2793
2794;;;***
2795
2796;;;### (autoloads nil "reftex-parse" "reftex-parse.el" "7bfdcb2f040dbe9a08d2c38c005c8f21")
2797;;; Generated autoloads from reftex-parse.el
2798
2799(autoload 'reftex-parse-one "reftex-parse" "\
2800Re-parse this file.
2801
2802\(fn)" t nil)
2803
2804(autoload 'reftex-parse-all "reftex-parse" "\
2805Re-parse entire document.
2806
2807\(fn)" t nil)
2808
2809(autoload 'reftex-do-parse "reftex-parse" "\
2810Do a document rescan.
2811When allowed, do only a partial scan from FILE.
2812
2813\(fn RESCAN &optional FILE)" nil nil)
2814
2815(autoload 'reftex-everything-regexp "reftex-parse" "\
2816
2817
2818\(fn)" nil nil)
2819
2820(autoload 'reftex-all-document-files "reftex-parse" "\
2821Return a list of all files belonging to the current document.
2822When RELATIVE is non-nil, give file names relative to directory
2823of master file.
2824
2825\(fn &optional RELATIVE)" nil nil)
2826
2827(autoload 'reftex-locate-bibliography-files "reftex-parse" "\
2828Scan buffer for bibliography macros and return file list.
2829
2830\(fn MASTER-DIR &optional FILES)" nil nil)
2831
2832(autoload 'reftex-section-info "reftex-parse" "\
2833Return a section entry for the current match.
2834Careful: This function expects the match-data to be still in place!
2835
2836\(fn FILE)" nil nil)
2837
2838(autoload 'reftex-ensure-index-support "reftex-parse" "\
2839When index support is turned off, ask to turn it on and
2840set the current prefix argument so that `reftex-access-scan-info'
2841will rescan the entire document.
2842
2843\(fn &optional ABORT)" nil nil)
2844
2845(autoload 'reftex-index-info-safe "reftex-parse" "\
2846
2847
2848\(fn FILE)" nil nil)
2849
2850(autoload 'reftex-index-info "reftex-parse" "\
2851Return an index entry for the current match.
2852Careful: This function expects the match-data to be still in place!
2853
2854\(fn FILE)" nil nil)
2855
2856(autoload 'reftex-short-context "reftex-parse" "\
2857Get about one line of useful context for the label definition at point.
2858
2859\(fn ENV PARSE &optional BOUND DERIVE)" nil nil)
2860
2861(autoload 'reftex-where-am-I "reftex-parse" "\
2862Return the docstruct entry above point.
2863Actually returns a cons cell in which the cdr is a flag indicating
2864if the information is exact (t) or approximate (nil).
2865
2866\(fn)" nil nil)
2867
2868(autoload 'reftex-notice-new "reftex-parse" "\
2869Hook to handshake with RefTeX after something new has been inserted.
2870
2871\(fn &optional N FORCE)" nil nil)
2872
2873(autoload 'reftex-what-macro-safe "reftex-parse" "\
2874Call `reftex-what-macro' with special syntax table.
2875
2876\(fn WHICH &optional BOUND)" nil nil)
2877
2878(autoload 'reftex-what-macro "reftex-parse" "\
2879Find out if point is within the arguments of any TeX-macro.
2880The return value is either (\"\\macro\" . (point)) or a list of them.
2881
2882If WHICH is nil, immediately return nil.
2883If WHICH is 1, return innermost enclosing macro.
2884If WHICH is t, return list of all macros enclosing point.
2885If WHICH is a list of macros, look only for those macros and return the
2886 name of the first macro in this list found to enclose point.
2887If the optional BOUND is an integer, bound backwards directed
2888 searches to this point. If it is nil, limit to nearest \\section -
2889 like statement.
2890
2891This function is pretty stable, but can be fooled if the text contains
2892things like \\macro{aa}{bb} where \\macro is defined to take only one
2893argument. As RefTeX cannot know this, the string \"bb\" would still be
2894considered an argument of macro \\macro.
2895
2896\(fn WHICH &optional BOUND)" nil nil)
2897
2898(autoload 'reftex-what-environment "reftex-parse" "\
2899Find out if point is inside a LaTeX environment.
2900The return value is (e.g.) either (\"equation\" . (point)) or a list of
2901them.
2902
2903If WHICH is nil, immediately return nil.
2904If WHICH is 1, return innermost enclosing environment.
2905If WHICH is t, return list of all environments enclosing point.
2906If WHICH is a list of environments, look only for those environments and
2907 return the name of the first environment in this list found to enclose
2908 point.
2909
2910If the optional BOUND is an integer, bound backwards directed searches to
2911this point. If it is nil, limit to nearest \\section - like statement.
2912
2913\(fn WHICH &optional BOUND)" nil nil)
2914
2915(autoload 'reftex-what-special-env "reftex-parse" "\
2916Run the special environment parsers and return the matches.
2917
2918The return value is (e.g.) either (\"my-parser-function\" . (point))
2919or a list of them.
2920
2921If WHICH is nil, immediately return nil.
2922If WHICH is 1, return innermost enclosing environment.
2923If WHICH is t, return list of all environments enclosing point.
2924If WHICH is a list of environments, look only for those environments and
2925 return the name of the first environment in this list found to enclose
2926 point.
2927
2928\(fn WHICH &optional BOUND)" nil nil)
2929
2930(autoload 'reftex-nth-arg "reftex-parse" "\
2931Return the Nth following {} or [] parentheses content.
2932OPT-ARGS is a list of argument numbers which are optional.
2933
2934\(fn N &optional OPT-ARGS)" nil nil)
2935
2936(autoload 'reftex-move-over-touching-args "reftex-parse" "\
2937
2938
2939\(fn)" nil nil)
2940
2941(autoload 'reftex-init-section-numbers "reftex-parse" "\
2942Initialize the section numbers with zeros or with what is found in the TOC-ENTRY.
2943
2944\(fn &optional TOC-ENTRY APPENDIX)" nil nil)
2945
2946(autoload 'reftex-section-number "reftex-parse" "\
2947Return a string with the current section number.
2948When LEVEL is non-nil, increase section numbers on that level.
2949
2950\(fn &optional LEVEL STAR)" nil nil)
2951
2952;;;***
2953
2954;;;### (autoloads nil "reftex-ref" "reftex-ref.el" "86c0a243e49d55bb33a32ddac613e189")
2955;;; Generated autoloads from reftex-ref.el
2956
2957(autoload 'reftex-label-location "reftex-ref" "\
2958Return the environment or macro which determines the label type at point.
2959If optional BOUND is an integer, limit backward searches to that point.
2960
2961\(fn &optional BOUND)" nil nil)
2962
2963(autoload 'reftex-label-info-update "reftex-ref" "\
2964
2965
2966\(fn CELL)" nil nil)
2967
2968(autoload 'reftex-label-info "reftex-ref" "\
2969
2970
2971\(fn LABEL &optional FILE BOUND DERIVE ENV-OR-MAC)" nil nil)
2972
2973(autoload 'reftex-label "reftex-ref" "\
2974Insert a unique label. Return the label.
2975If ENVIRONMENT is given, don't bother to find out yourself.
2976If NO-INSERT is non-nil, do not insert label into buffer.
2977With prefix arg, force to rescan document first.
2978When you are prompted to enter or confirm a label, and you reply with
2979just the prefix or an empty string, no label at all will be inserted.
2980A new label is also recorded into the label list.
2981This function is controlled by the settings of reftex-insert-label-flags.
2982
2983\(fn &optional ENVIRONMENT NO-INSERT)" t nil)
2984
2985(autoload 'reftex-reference "reftex-ref" "\
2986Make a LaTeX reference. Look only for labels of a certain TYPE.
2987With prefix arg, force to rescan buffer for labels. This should only be
2988necessary if you have recently entered labels yourself without using
2989reftex-label. Rescanning of the buffer can also be requested from the
2990label selection menu.
2991The function returns the selected label or nil.
2992If NO-INSERT is non-nil, do not insert \\ref command, just return label.
2993When called with 2 C-u prefix args, disable magic word recognition.
2994
2995\(fn &optional TYPE NO-INSERT CUT)" t nil)
2996
2997(autoload 'reftex-query-label-type "reftex-ref" "\
2998
2999
3000\(fn)" nil nil)
3001
3002(autoload 'reftex-show-label-location "reftex-ref" "\
3003
3004
3005\(fn DATA FORWARD NO-REVISIT &optional STAY ERROR)" nil nil)
3006
3007(autoload 'reftex-goto-label "reftex-ref" "\
3008Prompt for a label (with completion) and jump to the location of this label.
3009Optional prefix argument OTHER-WINDOW goes to the label in another window.
3010
3011\(fn &optional OTHER-WINDOW)" t nil)
3012
3013;;;***
3014
3015;;;### (autoloads nil "reftex-sel" "reftex-sel.el" "faea36cbe37033efd3f9063187eef7ee")
3016;;; Generated autoloads from reftex-sel.el
3017
3018(autoload 'reftex-select-label-mode "reftex-sel" "\
3019Major mode for selecting a label in a LaTeX document.
3020This buffer was created with RefTeX.
3021It only has a meaningful keymap when you are in the middle of a
3022selection process.
3023To select a label, move the cursor to it and press RET.
3024Press `?' for a summary of important key bindings.
3025
3026During a selection process, these are the local bindings.
3027
3028\\{reftex-select-label-mode-map}
3029
3030\(fn)" t nil)
3031
3032(autoload 'reftex-select-bib-mode "reftex-sel" "\
3033Major mode for selecting a citation key in a LaTeX document.
3034This buffer was created with RefTeX.
3035It only has a meaningful keymap when you are in the middle of a
3036selection process.
3037In order to select a citation, move the cursor to it and press RET.
3038Press `?' for a summary of important key bindings.
3039
3040During a selection process, these are the local bindings.
3041
3042\\{reftex-select-label-mode-map}
3043
3044\(fn)" t nil)
3045
3046(autoload 'reftex-get-offset "reftex-sel" "\
3047
3048
3049\(fn BUF HERE-AM-I &optional TYPEKEY TOC INDEX FILE)" nil nil)
3050
3051(autoload 'reftex-insert-docstruct "reftex-sel" "\
3052
3053
3054\(fn BUF TOC LABELS INDEX-ENTRIES FILES CONTEXT COUNTER SHOW-COMMENTED HERE-I-AM XR-PREFIX TOC-BUFFER)" nil nil)
3055
3056(autoload 'reftex-find-start-point "reftex-sel" "\
3057
3058
3059\(fn FALLBACK &rest LOCATIONS)" nil nil)
3060
3061(autoload 'reftex-select-item "reftex-sel" "\
3062
3063
3064\(fn REFTEX-SELECT-PROMPT HELP-STRING KEYMAP &optional OFFSET CALL-BACK CB-FLAG)" nil nil)
3065
3066;;;***
3067
3068;;;### (autoloads nil "reftex-toc" "reftex-toc.el" "db9b727d89e2a6ff01986e7c6aff1058")
3069;;; Generated autoloads from reftex-toc.el
3070
3071(autoload 'reftex-toc "reftex-toc" "\
3072Show the table of contents for the current document.
3073When called with a raw C-u prefix, rescan the document first.
3074
3075\(fn &optional REBUILD REUSE)" t nil)
3076
3077(autoload 'reftex-toc-recenter "reftex-toc" "\
3078Display the TOC window and highlight line corresponding to current position.
3079
3080\(fn &optional ARG)" t nil)
3081
3082(autoload 'reftex-toggle-auto-toc-recenter "reftex-toc" "\
3083Toggle the automatic recentering of the TOC window.
3084When active, leaving point idle will make the TOC window jump to the correct
3085section.
3086
3087\(fn)" t nil)
3088
3089;;;***
3090
3091;;; End of automatically extracted autoloads.
3092
3093(provide 'reftex) 2398(provide 'reftex)
3094 2399
3095;;; reftex.el ends here 2400;;; reftex.el ends here
diff --git a/test/lisp/textmodes/reftex-tests.el b/test/lisp/textmodes/reftex-tests.el
index 962e39ff38e..a7af58f74c0 100644
--- a/test/lisp/textmodes/reftex-tests.el
+++ b/test/lisp/textmodes/reftex-tests.el
@@ -204,5 +204,20 @@
204 (should (string= (reftex-format-citation entry "%l:%A:%y:%t %j %P %a") 204 (should (string= (reftex-format-citation entry "%l:%A:%y:%t %j %P %a")
205 "Foo13:Jane Roe:2013:Some Article Some Journal 1 Jane Roe, John Doe \\& Jane Taxpayer")))) 205 "Foo13:Jane Roe:2013:Some Article Some Journal 1 Jane Roe, John Doe \\& Jane Taxpayer"))))
206 206
207
208;;; Autoload tests
209
210;; Test to check whether reftex autoloading mechanisms are working
211;; correctly.
212(ert-deftest reftex-autoload-auc ()
213 "Tests to see whether reftex-auc has been autoloaded"
214 (should
215 (fboundp 'reftex-arg-label))
216 (should
217 (autoloadp
218 (symbol-function
219 'reftex-arg-label))))
220
221
207(provide 'reftex-tests) 222(provide 'reftex-tests)
208;;; reftex-tests.el ends here. 223;;; reftex-tests.el ends here.