aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik1999-09-24 10:00:17 +0000
committerCarsten Dominik1999-09-24 10:00:17 +0000
commit28b707f9bc95181855a7293f4d7b6d23a964a511 (patch)
tree12156d6028f9f8ef5d806b169eeefe04fa6cf7d9
parent48ffe14fdd981954fe18cb6fb174eaf5005dd920 (diff)
downloademacs-28b707f9bc95181855a7293f4d7b6d23a964a511.tar.gz
emacs-28b707f9bc95181855a7293f4d7b6d23a964a511.zip
(reftex-parse-from-file): Scan for multiple thebibliography
environments.
-rw-r--r--lisp/textmodes/reftex-parse.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el
index 8b69efe9de0..a6570bcc6cb 100644
--- a/lisp/textmodes/reftex-parse.el
+++ b/lisp/textmodes/reftex-parse.el
@@ -1,5 +1,5 @@
1;;; reftex-parse.el - Parser Functions for RefTeX 1;;; reftex-parse.el - Parser Functions for RefTeX
2;;; Version: 4.5 2;;; Version: 4.6
3;;; 3;;;
4;;; See main file reftex.el for licensing information 4;;; See main file reftex.el for licensing information
5 5
@@ -355,8 +355,11 @@ of master file."
355 ;; Carefull: This function expects the match-data to be still in place! 355 ;; Carefull: This function expects the match-data to be still in place!
356 (let* ((marker (set-marker (make-marker) (1- (match-beginning 3)))) 356 (let* ((marker (set-marker (make-marker) (1- (match-beginning 3))))
357 (macro (reftex-match-string 3)) 357 (macro (reftex-match-string 3))
358 (level (cdr (assoc macro reftex-section-levels-all))) 358 (level-exp (cdr (assoc macro reftex-section-levels-all)))
359 (star (= ?* (char-after (match-end 3)))) 359 (level (if (symbolp level-exp)
360 (save-match-data (funcall level-exp))
361 level-exp))
362 (star (= ?* (char-after (match-end 3))))
360 (unnumbered (or star (< level 0))) 363 (unnumbered (or star (< level 0)))
361 (level (abs level)) 364 (level (abs level))
362 (section-number (reftex-section-number level unnumbered)) 365 (section-number (reftex-section-number level unnumbered))
@@ -927,7 +930,7 @@ of master file."
927 (min (+ (point) 150) (point-max)))))) 930 (min (+ (point) 150) (point-max))))))
928 931
929;; Variable holding the vector with section numbers 932;; Variable holding the vector with section numbers
930(defvar reftex-section-numbers [0 0 0 0 0 0 0 0]) 933(defvar reftex-section-numbers (make-vector reftex-max-section-depth 0))
931 934
932(defun reftex-init-section-numbers (&optional toc-entry appendix) 935(defun reftex-init-section-numbers (&optional toc-entry appendix)
933 ;; Initialize the section numbers with zeros or with what is found 936 ;; Initialize the section numbers with zeros or with what is found