# HG changeset patch # User Carsten Dominik # Date 976446045 0 # Node ID 5eec8d1d09f043e051089dc282585032d4c1d37e # Parent 120509642076a277d051686ffd135da968d8ae64 Update to RefTeX 4.15, see ChangeLog for details diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-auc.el --- a/lisp/textmodes/reftex-auc.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-auc.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-cite.el --- a/lisp/textmodes/reftex-cite.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-cite.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-dcr.el --- a/lisp/textmodes/reftex-dcr.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-dcr.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-global.el --- a/lisp/textmodes/reftex-global.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-global.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. @@ -36,7 +36,7 @@ (files (reftex-all-document-files)) (cmd (format "etags %s" (mapconcat 'identity files " ")))) (save-excursion - (set-buffer (reftex-get-buffer-visiting master)) + (set-buffer (reftex-get-file-buffer-force master)) (message "Running etags to create TAGS file...") (shell-command cmd) (visit-tags-table "TAGS")))) diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-index.el --- a/lisp/textmodes/reftex-index.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-index.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-parse.el --- a/lisp/textmodes/reftex-parse.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-parse.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-ref.el --- a/lisp/textmodes/reftex-ref.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-ref.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-sel.el --- a/lisp/textmodes/reftex-sel.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-sel.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. @@ -113,7 +113,7 @@ ;; BUF is the buffer which has the correct docstruct-symbol. ;; LABELS non-nil means to include labels into the list. ;; When a string, indicates the label type to include - ;; FILES non-nil menas to display file boundaries. + ;; FILES non-nil means to display file boundaries. ;; CONTEXT non-nil means to include label context. ;; COUNTER means to count the labels. ;; SHOW-COMMENTED means to include also labels which are commented out. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-toc.el --- a/lisp/textmodes/reftex-toc.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-toc.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. @@ -598,7 +598,7 @@ ["External Document TOC " reftex-toc-external t] "--" ("Update" - ["Rebuild *toc* Buffer" revert-buffer t] + ["Rebuilt *toc* Buffer" revert-buffer t] ["Rescan One File" reftex-toc-rescan reftex-enable-partial-scans] ["Rescan Entire Document" reftex-toc-Rescan t]) ("Options" diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex-vars.el --- a/lisp/textmodes/reftex-vars.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex-vars.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; ;; This file is part of GNU Emacs. diff -r 120509642076 -r 5eec8d1d09f0 lisp/textmodes/reftex.el --- a/lisp/textmodes/reftex.el Sat Dec 09 22:06:44 2000 +0000 +++ b/lisp/textmodes/reftex.el Sun Dec 10 11:00:45 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Version: 4.14 +;; Version: 4.15 ;; Keywords: tex ;; This file is part of GNU Emacs. @@ -300,7 +300,7 @@ ;;; Define the formal stuff for a minor mode named RefTeX. ;;; -(defconst reftex-version "RefTeX version 4.14" +(defconst reftex-version "RefTeX version 4.15" "Version string for RefTeX.") (defvar reftex-mode nil @@ -506,6 +506,7 @@ (condition-case nil (TeX-master-file t) (error (buffer-file-name)))) + ((fboundp 'tex-main-file) (tex-main-file)) ; Emacs LaTeX mode ((boundp 'TeX-master) ; The variable is defined - lets use it. (cond ((eq TeX-master t) @@ -1209,6 +1210,14 @@ ;; Scan whatever was required by the caller. (reftex-do-parse rescan file)))) +(defun reftex-scanning-info-available-p () + "Is the scanning info about the current document available?" + (unless reftex-docstruct-symbol + (reftex-tie-multifile-symbols)) + (and (symbolp reftex-docstruct-symbol) + (symbol-value reftex-docstruct-symbol) + t)) + (defun reftex-silence-toc-markers (list n) ;; Set all toc markers in the first N entries in list to nil (while (and list (> (decf n) -1))