]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/reftex-parse.el
*** empty log message ***
[gnu-emacs] / lisp / textmodes / reftex-parse.el
index f38a02425aa26ced4cd523a2798bce128a6e2448..1bb6a24bce5ef6b9b871aba9e32d7144e5fc98a8 100644 (file)
@@ -1,7 +1,30 @@
-;;; reftex-parse.el - Parser Functions for RefTeX
-;;; Version: 4.9
-;;;
-;;; See main file reftex.el for licensing information
+;;; reftex-parse.el --- parser functions for RefTeX
+;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+
+;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
+;; Version: 4.16
+;;
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 2, or (at your option)
+;; any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs; see the file COPYING.  If not, write to the
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
+
+;;; Commentary:
+
+;;; Code:
 
 (eval-when-compile (require 'cl))
 (provide 'reftex-parse)
@@ -12,7 +35,8 @@
      (unwind-protect
         (progn
           (set-syntax-table reftex-syntax-table)
-          ,@body)
+          (let ((case-fold-search nil))
+            ,@body))
        (set-syntax-table saved-syntax))))
 
 (defun reftex-parse-one ()
@@ -310,9 +334,9 @@ of master file."
     (save-excursion
       (goto-char (point-min))
       (if (re-search-forward
-          "\\(\\`\\|[\n\r]\\)[ \t]*\\\\bibliography{[ \t]*\\([^}]+\\)" nil t)
+          "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\)?bibliography{[ \t]*\\([^}]+\\)" nil t)
          (setq files 
-               (split-string (reftex-match-string 2)
+               (split-string (reftex-match-string 3)
                              "[ \t\n\r]*,[ \t\n\r]*")))))
   (when files
     (setq files