aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik <[email protected]>2000-02-04 10:01:08 +0000
committerCarsten Dominik <[email protected]>2000-02-04 10:01:08 +0000
commit46177d543694b9876b75c2708e1cd38fbfb1e16e (patch)
tree3792c35114bee38e435697e555a153abc34bca00
parentea442c620b0a18a3e6112c70fcb0b2c968a5e051 (diff)
(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 95ae59922a..679dc62bba 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 <[email protected]>
-;; Version: 4.10
+;; Version: 4.11
;; 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.10"
+(defconst reftex-version "RefTeX version 4.11"
"Version string for RefTeX.")
(defvar reftex-mode nil
@@ -1095,7 +1095,8 @@ This enforces rescanning the buffer on next use."
(include-re (concat wbol "\\\\\\(include\\|input\\)[{ \t]+\\([^} \t\n\r]+\\)"))
(section-re
(concat wbol "\\\\\\("
- (mapconcat 'car reftex-section-levels-all "\\|")
+ (mapconcat (lambda (x) (regexp-quote (car x)))
+ reftex-section-levels-all "\\|")
"\\)\\*?\\(\\[[^]]*\\]\\)?{?"))
(appendix-re (concat wbol "\\(\\\\appendix\\)"))
(macro-re