From 11b4a0d2320bd48b0c3c9c5c549fffb730826a67 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 10 Dec 2000 11:00:45 +0000 Subject: [PATCH] Update to RefTeX 4.15, see ChangeLog for details --- lisp/textmodes/reftex-auc.el | 2 +- lisp/textmodes/reftex-cite.el | 2 +- lisp/textmodes/reftex-dcr.el | 2 +- lisp/textmodes/reftex-global.el | 4 ++-- lisp/textmodes/reftex-index.el | 2 +- lisp/textmodes/reftex-parse.el | 2 +- lisp/textmodes/reftex-ref.el | 2 +- lisp/textmodes/reftex-sel.el | 4 ++-- lisp/textmodes/reftex-toc.el | 4 ++-- lisp/textmodes/reftex-vars.el | 2 +- lisp/textmodes/reftex.el | 13 +++++++++++-- 11 files changed, 24 insertions(+), 15 deletions(-) diff --git a/lisp/textmodes/reftex-auc.el b/lisp/textmodes/reftex-auc.el index 2699d482a75..1fe6da1dca5 100644 --- a/lisp/textmodes/reftex-auc.el +++ b/lisp/textmodes/reftex-auc.el @@ -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 --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el index f6bba642c1e..f9ffc015626 100644 --- a/lisp/textmodes/reftex-cite.el +++ b/lisp/textmodes/reftex-cite.el @@ -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 --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el index 10dd5343c51..e4a63028a8f 100644 --- a/lisp/textmodes/reftex-dcr.el +++ b/lisp/textmodes/reftex-dcr.el @@ -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 --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el index 8cd2d4da3e2..2c1d9538f1b 100644 --- a/lisp/textmodes/reftex-global.el +++ b/lisp/textmodes/reftex-global.el @@ -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 @@ The TAGS file is also immediately visited with `visit-tags-table'." (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 --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el index 900e6000eb4..00427cfd97c 100644 --- a/lisp/textmodes/reftex-index.el +++ b/lisp/textmodes/reftex-index.el @@ -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 --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index 59e078aad3b..2740f1f0cf7 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -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 --git a/lisp/textmodes/reftex-ref.el b/lisp/textmodes/reftex-ref.el index 44609914ec3..683fbe63c2d 100644 --- a/lisp/textmodes/reftex-ref.el +++ b/lisp/textmodes/reftex-ref.el @@ -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 --git a/lisp/textmodes/reftex-sel.el b/lisp/textmodes/reftex-sel.el index 044c384fc26..d76dfa55566 100644 --- a/lisp/textmodes/reftex-sel.el +++ b/lisp/textmodes/reftex-sel.el @@ -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 @@ During a selection process, these are the local bindings. ;; 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 --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index 9ee9788e5ba..83a26fb0f74 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el @@ -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 @@ With prefix arg 1, restrict index to the section at point." ["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 --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index f651d0b8de0..9794c013619 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -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 --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 9468235a9df..9c3b90118f1 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el @@ -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 @@ on the menu bar. (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 @@ This enforces rescanning the buffer on next use." ;; 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)) -- 2.39.5