# HG changeset patch # User Carsten Dominik # Date 949658468 0 # Node ID 225cd305a20e44773e78a7f87820ef0e1a79e730 # Parent 322d1a88513b61215480fc39b3ba3c17faaf8d7e (reftex-compile-variables): regexp-quote the environment names before they go into the section regexp. diff -r 322d1a88513b -r 225cd305a20e lisp/textmodes/reftex.el --- a/lisp/textmodes/reftex.el Fri Feb 04 09:57:10 2000 +0000 +++ b/lisp/textmodes/reftex.el Fri Feb 04 10:01:08 2000 +0000 @@ -2,7 +2,7 @@ ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; 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 @@ (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