diff options
| author | Carsten Dominik | 2001-06-08 08:43:20 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2001-06-08 08:43:20 +0000 |
| commit | 70d797cd6e055969be39581f7963a8f1eb10b24e (patch) | |
| tree | 58de0866f9cc2519ded529e020449e4ad22b608f | |
| parent | 6401dc8681e45239693eb7e276163f261f157f78 (diff) | |
| download | emacs-70d797cd6e055969be39581f7963a8f1eb10b24e.tar.gz emacs-70d797cd6e055969be39581f7963a8f1eb10b24e.zip | |
* reftex-ref.el (reftex-select-label-help): Added "z" key
description.
* reftex-sel.el (reftex-select-jump): New command.
* reftex-toc.el (reftex-toc-help): Added "z" key description.
(reftex-toc-jump): New command.
* reftex-cite.el (reftex-parse-bibitem): Regexp changed to parse
international characters as well.
* reftex.el: Added autoloads for eftex-varioref-vref',
eftex-fancyref-fref', eftex-fancyref-Fref'
* reftex-vars.el: Protected single backslash in many docstrings.
* reftex-dcr.el (reftex-view-crossref): added SPACE and TAB to the
key separaotrs.
| -rw-r--r-- | lisp/textmodes/reftex-auc.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-cite.el | 6 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-dcr.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-global.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-index.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-parse.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-ref.el | 9 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-sel.el | 12 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-toc.el | 16 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-vars.el | 19 | ||||
| -rw-r--r-- | lisp/textmodes/reftex.el | 10 |
11 files changed, 57 insertions, 25 deletions
diff --git a/lisp/textmodes/reftex-auc.el b/lisp/textmodes/reftex-auc.el index 1fe6da1dca5..e4f40025dfa 100644 --- a/lisp/textmodes/reftex-auc.el +++ b/lisp/textmodes/reftex-auc.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el index f9ffc015626..0eb70a50052 100644 --- a/lisp/textmodes/reftex-cite.el +++ b/lisp/textmodes/reftex-cite.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -487,7 +487,7 @@ | |||
| 487 | (defun reftex-parse-bibitem (item) | 487 | (defun reftex-parse-bibitem (item) |
| 488 | ;; Parse a \bibitem entry | 488 | ;; Parse a \bibitem entry |
| 489 | (let ((key "") (text "")) | 489 | (let ((key "") (text "")) |
| 490 | (when (string-match "\\`{\\([^}]+\\)}\\([\001-\255]*\\)" item) | 490 | (when (string-match "\\`{\\([^}]+\\)}\\([^\000]*\\)" item) |
| 491 | (setq key (match-string 1 item) | 491 | (setq key (match-string 1 item) |
| 492 | text (match-string 2 item))) | 492 | text (match-string 2 item))) |
| 493 | ;; Clean up the text a little bit | 493 | ;; Clean up the text a little bit |
| @@ -534,7 +534,7 @@ FORAT-KEY can be used to pre-select a citation format. | |||
| 534 | 534 | ||
| 535 | When called with one or two `C-u' prefixes, first rescans the document. | 535 | When called with one or two `C-u' prefixes, first rescans the document. |
| 536 | When called with a numeric prefix, make that many citations. When | 536 | When called with a numeric prefix, make that many citations. When |
| 537 | called with point inside the braces of a `\cite' command, it will | 537 | called with point inside the braces of a `\\cite' command, it will |
| 538 | add another key, ignoring the value of `reftex-cite-format'. | 538 | add another key, ignoring the value of `reftex-cite-format'. |
| 539 | 539 | ||
| 540 | The regular expression uses an expanded syntax: && is interpreted as `and'. | 540 | The regular expression uses an expanded syntax: && is interpreted as `and'. |
diff --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el index 72c981b4c6d..1a1d04fb4a5 100644 --- a/lisp/textmodes/reftex-dcr.el +++ b/lisp/textmodes/reftex-dcr.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el index 2c1d9538f1b..07aef178217 100644 --- a/lisp/textmodes/reftex-global.el +++ b/lisp/textmodes/reftex-global.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el index 00427cfd97c..e2016a54faf 100644 --- a/lisp/textmodes/reftex-index.el +++ b/lisp/textmodes/reftex-index.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index 2740f1f0cf7..d9d04b4c115 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/textmodes/reftex-ref.el b/lisp/textmodes/reftex-ref.el index 683fbe63c2d..f2aa24a4a8e 100644 --- a/lisp/textmodes/reftex-ref.el +++ b/lisp/textmodes/reftex-ref.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -364,6 +364,7 @@ also applies `reftex-translate-to-ascii-function' to the string." | |||
| 364 | " n / p Go to next/previous label (Cursor motion works as well) | 364 | " n / p Go to next/previous label (Cursor motion works as well) |
| 365 | C-c C-n/p Go to next/previous section heading. | 365 | C-c C-n/p Go to next/previous section heading. |
| 366 | b / l Jump back to previous selection / Reuse last referenced label. | 366 | b / l Jump back to previous selection / Reuse last referenced label. |
| 367 | z Jump to a specific section, e.g. '3 z' jumps to section 3. | ||
| 367 | g / s Update menu / Switch label type. | 368 | g / s Update menu / Switch label type. |
| 368 | r / C-u r Reparse document / Reparse entire document. | 369 | r / C-u r Reparse document / Reparse entire document. |
| 369 | x Switch to label menu of external document (with LaTeX package `xr'). | 370 | x Switch to label menu of external document (with LaTeX package `xr'). |
| @@ -770,19 +771,19 @@ When called with 2 C-u prefix args, disable magic word recognition." | |||
| 770 | (setq buffer-read-only t)))))) | 771 | (setq buffer-read-only t)))))) |
| 771 | 772 | ||
| 772 | (defun reftex-varioref-vref () | 773 | (defun reftex-varioref-vref () |
| 773 | "Insert a reference using the `\vref' macro from the varioref package." | 774 | "Insert a reference using the `\\vref' macro from the varioref package." |
| 774 | (interactive) | 775 | (interactive) |
| 775 | (let ((reftex-format-ref-function 'reftex-format-vref)) | 776 | (let ((reftex-format-ref-function 'reftex-format-vref)) |
| 776 | (reftex-reference))) | 777 | (reftex-reference))) |
| 777 | (defun reftex-fancyref-fref () | 778 | (defun reftex-fancyref-fref () |
| 778 | "Insert a reference using the `\fref' macro from the fancyref package." | 779 | "Insert a reference using the `\\fref' macro from the fancyref package." |
| 779 | (interactive) | 780 | (interactive) |
| 780 | (let ((reftex-format-ref-function 'reftex-format-fref) | 781 | (let ((reftex-format-ref-function 'reftex-format-fref) |
| 781 | ;;(reftex-guess-label-type nil) ;FIXME do we want this???? | 782 | ;;(reftex-guess-label-type nil) ;FIXME do we want this???? |
| 782 | ) | 783 | ) |
| 783 | (reftex-reference))) | 784 | (reftex-reference))) |
| 784 | (defun reftex-fancyref-Fref () | 785 | (defun reftex-fancyref-Fref () |
| 785 | "Insert a reference using the `\Fref' macro from the fancyref package." | 786 | "Insert a reference using the `\\Fref' macro from the fancyref package." |
| 786 | (interactive) | 787 | (interactive) |
| 787 | (let ((reftex-format-ref-function 'reftex-format-Fref) | 788 | (let ((reftex-format-ref-function 'reftex-format-Fref) |
| 788 | ;;(reftex-guess-label-type nil) ;FIXME do we want this???? | 789 | ;;(reftex-guess-label-type nil) ;FIXME do we want this???? |
diff --git a/lisp/textmodes/reftex-sel.el b/lisp/textmodes/reftex-sel.el index d76dfa55566..fa3f04e8d93 100644 --- a/lisp/textmodes/reftex-sel.el +++ b/lisp/textmodes/reftex-sel.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -445,6 +445,15 @@ During a selection process, these are the local bindings. | |||
| 445 | (interactive "p") | 445 | (interactive "p") |
| 446 | (setq reftex-callback-fwd nil) | 446 | (setq reftex-callback-fwd nil) |
| 447 | (re-search-backward "^[^. \t\n\r]" nil t arg)) | 447 | (re-search-backward "^[^. \t\n\r]" nil t arg)) |
| 448 | (defun reftex-select-jump (arg) | ||
| 449 | "Jump to a specific section. E.g. '3 z' jumps to section 3. | ||
| 450 | Useful for large TOC's." | ||
| 451 | (interactive "P") | ||
| 452 | (goto-char (point-min)) | ||
| 453 | (re-search-forward | ||
| 454 | (concat "^ *" (number-to-string (if (numberp arg) arg 1)) " ") | ||
| 455 | nil t) | ||
| 456 | (beginning-of-line)) | ||
| 448 | (defun reftex-select-next-heading (&optional arg) | 457 | (defun reftex-select-next-heading (&optional arg) |
| 449 | "Move to next table of contentes line." | 458 | "Move to next table of contentes line." |
| 450 | (interactive "p") | 459 | (interactive "p") |
| @@ -660,6 +669,7 @@ During a selection process, these are the local bindings. | |||
| 660 | 669 | ||
| 661 | (loop for x in | 670 | (loop for x in |
| 662 | '(("b" . reftex-select-jump-to-previous) | 671 | '(("b" . reftex-select-jump-to-previous) |
| 672 | ("z" . reftex-select-jump) | ||
| 663 | ("v" . reftex-select-toggle-varioref) | 673 | ("v" . reftex-select-toggle-varioref) |
| 664 | ("V" . reftex-select-toggle-fancyref) | 674 | ("V" . reftex-select-toggle-fancyref) |
| 665 | ("m" . reftex-select-mark) | 675 | ("m" . reftex-select-mark) |
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index 83a26fb0f74..7e290ea7342 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -92,7 +92,8 @@ t Change maximum toc depth (e.g. `3 t' hides levels greater than 3). | |||
| 92 | f / g Toggle follow mode on and off / Refresh *toc* buffer. | 92 | f / g Toggle follow mode on and off / Refresh *toc* buffer. |
| 93 | r / C-u r Reparse the LaTeX document / Reparse entire LaTeX document. | 93 | r / C-u r Reparse the LaTeX document / Reparse entire LaTeX document. |
| 94 | . In other window, show position from where `reftex-toc' was called. | 94 | . In other window, show position from where `reftex-toc' was called. |
| 95 | x Switch to TOC of external document (with LaTeX package `xr').") | 95 | x Switch to TOC of external document (with LaTeX package `xr'). |
| 96 | z Jump to a specific section (e.g. '3 z' goes to section 3") | ||
| 96 | 97 | ||
| 97 | (defun reftex-toc (&optional rebuild) | 98 | (defun reftex-toc (&optional rebuild) |
| 98 | "Show the table of contents for the current document. | 99 | "Show the table of contents for the current document. |
| @@ -426,6 +427,16 @@ With prefix arg 1, restrict index to the section at point." | |||
| 426 | (message "") | 427 | (message "") |
| 427 | (message "Switched document")))) | 428 | (message "Switched document")))) |
| 428 | 429 | ||
| 430 | (defun reftex-toc-jump (arg) | ||
| 431 | "Jump to a specific section. E.g. '3 z' jumps to section 3. | ||
| 432 | Useful for large TOC's." | ||
| 433 | (interactive "P") | ||
| 434 | (goto-char (point-min)) | ||
| 435 | (re-search-forward | ||
| 436 | (concat "^ *" (number-to-string (if (numberp arg) arg 1)) " ") | ||
| 437 | nil t) | ||
| 438 | (beginning-of-line)) | ||
| 439 | |||
| 429 | (defun reftex-toc-visit-location (&optional final no-revisit) | 440 | (defun reftex-toc-visit-location (&optional final no-revisit) |
| 430 | ;; Visit the tex file corresponding to the toc entry on the current line. | 441 | ;; Visit the tex file corresponding to the toc entry on the current line. |
| 431 | ;; If FINAL is t, stay there | 442 | ;; If FINAL is t, stay there |
| @@ -576,6 +587,7 @@ With prefix arg 1, restrict index to the section at point." | |||
| 576 | ("c" . reftex-toc-toggle-context) | 587 | ("c" . reftex-toc-toggle-context) |
| 577 | ("%" . reftex-toc-toggle-commented) | 588 | ("%" . reftex-toc-toggle-commented) |
| 578 | ("x" . reftex-toc-external) | 589 | ("x" . reftex-toc-external) |
| 590 | ("z" . reftex-toc-jump) | ||
| 579 | ("." . reftex-toc-show-calling-point) | 591 | ("." . reftex-toc-show-calling-point) |
| 580 | ("\C-c\C-n" . reftex-toc-next-heading) | 592 | ("\C-c\C-n" . reftex-toc-next-heading) |
| 581 | ("\C-c\C-p" . reftex-toc-previous-heading)) | 593 | ("\C-c\C-p" . reftex-toc-previous-heading)) |
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 9794c013619..5646779e41d 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; | 6 | ;; |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -348,7 +348,7 @@ TYPE-KEY | |||
| 348 | cases in which different environments carry the same label type (like | 348 | cases in which different environments carry the same label type (like |
| 349 | `equation' and `eqnarray'). | 349 | `equation' and `eqnarray'). |
| 350 | If the type indicator is nil and the macro has a label argument {*}, | 350 | If the type indicator is nil and the macro has a label argument {*}, |
| 351 | the macro defines neutral labels just like \label. In this case | 351 | the macro defines neutral labels just like \\label. In this case |
| 352 | the reminder of this entry is ignored. | 352 | the reminder of this entry is ignored. |
| 353 | 353 | ||
| 354 | LABEL-PREFIX | 354 | LABEL-PREFIX |
| @@ -731,7 +731,7 @@ AFTER Character class after abbrev point in word." | |||
| 731 | "Function which produces the string to insert as a label definition. | 731 | "Function which produces the string to insert as a label definition. |
| 732 | Normally should be nil, unless you want to do something fancy. | 732 | Normally should be nil, unless you want to do something fancy. |
| 733 | The function will be called with two arguments, the LABEL and the DEFAULT | 733 | The function will be called with two arguments, the LABEL and the DEFAULT |
| 734 | FORMAT, which usually is `\label{%s}'. The function should return the | 734 | FORMAT, which usually is `\\label{%s}'. The function should return the |
| 735 | string to insert into the buffer." | 735 | string to insert into the buffer." |
| 736 | :group 'reftex-making-and-inserting-labels | 736 | :group 'reftex-making-and-inserting-labels |
| 737 | :type 'function) | 737 | :type 'function) |
| @@ -788,7 +788,7 @@ get one interactively during selection from the label menu." | |||
| 788 | "Punctuation strings for multiple references. | 788 | "Punctuation strings for multiple references. |
| 789 | When marking is used in the selection buffer to select several references, | 789 | When marking is used in the selection buffer to select several references, |
| 790 | this variable associates the 3 marking characters `,-+' with prefix strings | 790 | this variable associates the 3 marking characters `,-+' with prefix strings |
| 791 | to be inserted into the buffer before the corresponding \ref macro. | 791 | to be inserted into the buffer before the corresponding \\ref macro. |
| 792 | This is used to string together whole reference sets, like | 792 | This is used to string together whole reference sets, like |
| 793 | `eqs. 1,2,3-5,6 and 7' in a single call to `reftex-reference'. See manual." | 793 | `eqs. 1,2,3-5,6 and 7' in a single call to `reftex-reference'. See manual." |
| 794 | :group 'reftex-referencing-labels | 794 | :group 'reftex-referencing-labels |
| @@ -832,11 +832,11 @@ a label type. If you set this variable to nil, RefTeX will always prompt." | |||
| 832 | "Function which produces the string to insert as a reference. | 832 | "Function which produces the string to insert as a reference. |
| 833 | Normally should be nil, because the format to insert a reference can | 833 | Normally should be nil, because the format to insert a reference can |
| 834 | already be specified in `reftex-label-alist'. | 834 | already be specified in `reftex-label-alist'. |
| 835 | This hook also is used by the special commands to insert `\vref' and `\fref' | 835 | This hook also is used by the special commands to insert `\\vref' and `\\fref' |
| 836 | references, so even if you set this, your setting will be ignored by | 836 | references, so even if you set this, your setting will be ignored by |
| 837 | the special commands. | 837 | the special commands. |
| 838 | The function will be called with two arguments, the LABEL and the DEFAULT | 838 | The function will be called with two arguments, the LABEL and the DEFAULT |
| 839 | FORMAT, which normally is `~\ref{%s}'. The function should return the | 839 | FORMAT, which normally is `~\\ref{%s}'. The function should return the |
| 840 | string to insert into the buffer." | 840 | string to insert into the buffer." |
| 841 | :group 'reftex-referencing-labels | 841 | :group 'reftex-referencing-labels |
| 842 | :type 'function) | 842 | :type 'function) |
| @@ -865,7 +865,7 @@ like, which are ignored by RefTeX anyway." | |||
| 865 | (defcustom reftex-default-bibliography nil | 865 | (defcustom reftex-default-bibliography nil |
| 866 | "*List of BibTeX database files which should be used if none are specified. | 866 | "*List of BibTeX database files which should be used if none are specified. |
| 867 | When `reftex-citation' is called from a document which has neither a | 867 | When `reftex-citation' is called from a document which has neither a |
| 868 | `\bibliography{..}' statement nor a `thebibliography' environment, | 868 | `\\bibliography{..}' statement nor a `thebibliography' environment, |
| 869 | RefTeX will scan these files instead. Intended for using `reftex-citation' | 869 | RefTeX will scan these files instead. Intended for using `reftex-citation' |
| 870 | in non-LaTeX files. The files will be searched along the BIBINPUTS or TEXBIB | 870 | in non-LaTeX files. The files will be searched along the BIBINPUTS or TEXBIB |
| 871 | path." | 871 | path." |
| @@ -1346,7 +1346,10 @@ DEF-EXT: The default extension for that file type, like \".tex\" or \".bib\". | |||
| 1346 | OTHER-EXT: Any number of other legal extensions for this file type. | 1346 | OTHER-EXT: Any number of other legal extensions for this file type. |
| 1347 | 1347 | ||
| 1348 | When a files is searched and it does not have any of the legal extensions, | 1348 | When a files is searched and it does not have any of the legal extensions, |
| 1349 | we try the default extension first, and then the naked file name." | 1349 | we try the default extension first, and then the naked file name. |
| 1350 | |||
| 1351 | If you are using AUCTeX, you also need to add new extensions to | ||
| 1352 | TeX-file-extensions." | ||
| 1350 | :group 'reftex-finding-files | 1353 | :group 'reftex-finding-files |
| 1351 | :type '(repeat (cons (string :tag "File type") | 1354 | :type '(repeat (cons (string :tag "File type") |
| 1352 | (repeat (string :tag "Extension"))))) | 1355 | (repeat (string :tag "Extension"))))) |
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 08d6c8baa79..0f57649c0af 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> | 4 | ;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl> |
| 5 | ;; Version: 4.15 | 5 | ;; Version: 4.16 |
| 6 | ;; Keywords: tex | 6 | ;; Keywords: tex |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -300,7 +300,7 @@ | |||
| 300 | ;;; Define the formal stuff for a minor mode named RefTeX. | 300 | ;;; Define the formal stuff for a minor mode named RefTeX. |
| 301 | ;;; | 301 | ;;; |
| 302 | 302 | ||
| 303 | (defconst reftex-version "RefTeX version 4.15" | 303 | (defconst reftex-version "RefTeX version 4.16" |
| 304 | "Version string for RefTeX.") | 304 | "Version string for RefTeX.") |
| 305 | 305 | ||
| 306 | (defvar reftex-mode nil | 306 | (defvar reftex-mode nil |
| @@ -1603,6 +1603,12 @@ When DIE is non-nil, throw an error if file not found." | |||
| 1603 | "Insert a unique label." t) | 1603 | "Insert a unique label." t) |
| 1604 | (autoload 'reftex-reference "reftex-ref" | 1604 | (autoload 'reftex-reference "reftex-ref" |
| 1605 | "Make a LaTeX reference." t) | 1605 | "Make a LaTeX reference." t) |
| 1606 | (autoload 'reftex-varioref-vref "reftex-ref" | ||
| 1607 | "Make a varioref reference." t) | ||
| 1608 | (autoload 'reftex-fancyref-fref "reftex-ref" | ||
| 1609 | "Make a fancyref \\fref reference." t) | ||
| 1610 | (autoload 'reftex-fancyref-Fref "reftex-ref" | ||
| 1611 | "Make a fancyref \\Fref reference." t) | ||
| 1606 | (autoload 'reftex-show-label-location "reftex-ref") | 1612 | (autoload 'reftex-show-label-location "reftex-ref") |
| 1607 | (autoload 'reftex-query-label-type "reftex-ref") | 1613 | (autoload 'reftex-query-label-type "reftex-ref") |
| 1608 | 1614 | ||