From 4d9a0979f6930ef23ef0b05996cc737002b25e06 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Mon, 15 Apr 2013 09:55:05 +0200 Subject: [PATCH] * textmodes/reftex-vars.el (reftex-label-regexps): New defcustom. * textmodes/reftex.el (reftex-compile-variables): Use it. --- lisp/ChangeLog | 6 ++++++ lisp/textmodes/reftex-vars.el | 14 ++++++++++++++ lisp/textmodes/reftex.el | 8 +------- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b0997a307f5..34711b72c3e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2013-04-15 Tassilo Horn + + * textmodes/reftex-vars.el (reftex-label-regexps): New defcustom. + + * textmodes/reftex.el (reftex-compile-variables): Use it. + 2013-04-14 Stefan Monnier * files.el (normal-mode): Only use default major-mode if no other mode diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 2a5c9c55866..c00cf36c79e 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -863,6 +863,20 @@ DOWNCASE t: Downcase words before using them." (string :tag "")) (option (boolean :tag "Downcase words ")))) +(defcustom reftex-label-regexps + '(;; Normal \\label{foo} labels + "\\\\label{\\(?1:[^}]*\\)}" + ;; keyvals [..., label = {foo}, ...] forms used by ctable, + ;; listings, minted, ... + "\\[[^]]*\\