aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2000-02-04 10:01:08 +0000
committerCarsten Dominik2000-02-04 10:01:08 +0000
commit46177d543694b9876b75c2708e1cd38fbfb1e16e (patch)
tree3792c35114bee38e435697e555a153abc34bca00
parentea442c620b0a18a3e6112c70fcb0b2c968a5e051 (diff)
downloademacs-46177d543694b9876b75c2708e1cd38fbfb1e16e.tar.gz
emacs-46177d543694b9876b75c2708e1cd38fbfb1e16e.zip
(reftex-compile-variables): regexp-quote the
environment names before they go into the section regexp.
-rw-r--r--lisp/textmodes/reftex.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 95ae59922ad..679dc62bba8 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.10 5;; Version: 4.11
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.10" 303(defconst reftex-version "RefTeX version 4.11"
304 "Version string for RefTeX.") 304 "Version string for RefTeX.")
305 305
306(defvar reftex-mode nil 306(defvar reftex-mode nil
@@ -1095,7 +1095,8 @@ This enforces rescanning the buffer on next use."
1095 (include-re (concat wbol "\\\\\\(include\\|input\\)[{ \t]+\\([^} \t\n\r]+\\)")) 1095 (include-re (concat wbol "\\\\\\(include\\|input\\)[{ \t]+\\([^} \t\n\r]+\\)"))
1096 (section-re 1096 (section-re
1097 (concat wbol "\\\\\\(" 1097 (concat wbol "\\\\\\("
1098 (mapconcat 'car reftex-section-levels-all "\\|") 1098 (mapconcat (lambda (x) (regexp-quote (car x)))
1099 reftex-section-levels-all "\\|")
1099 "\\)\\*?\\(\\[[^]]*\\]\\)?{?")) 1100 "\\)\\*?\\(\\[[^]]*\\]\\)?{?"))
1100 (appendix-re (concat wbol "\\(\\\\appendix\\)")) 1101 (appendix-re (concat wbol "\\(\\\\appendix\\)"))
1101 (macro-re 1102 (macro-re