* textmodes/reftex-vars.el (reftex-label-regexps): Call
authorTassilo Horn <tsdh@gnu.org>
Tue, 23 Apr 2013 15:18:58 +0000 (17:18 +0200)
committerTassilo Horn <tsdh@gnu.org>
Tue, 23 Apr 2013 15:18:58 +0000 (17:18 +0200)
`reftex-compile-variables' after changes to this variable.

lisp/ChangeLog
lisp/textmodes/reftex-vars.el

index 4307577..d299aee 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-23  Tassilo Horn  <tsdh@gnu.org>
+
+       * textmodes/reftex-vars.el (reftex-label-regexps): Call
+       `reftex-compile-variables' after changes to this variable.
+
 2013-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * jit-lock.el: Fix signals in jit-lock-force-redisplay.
index c00cf36..a220002 100644 (file)
@@ -873,7 +873,14 @@ DOWNCASE    t:   Downcase words before using them."
 The default value matches usual \\label{...} definitions and
 keyval style [..., label = {...}, ...] label definitions.  It is
 assumed that the regexp group 1 matches the label text, so you
-have to define it using \\(?1:...\\) when adding new regexps."
+have to define it using \\(?1:...\\) when adding new regexps.
+
+When changed from Lisp, make sure to call
+`reftex-compile-variables' afterwards to make the change
+effective."
+  :set (lambda (symbol value)
+        (set symbol value)
+        (reftex-compile-variables))
   :group 'reftex-defining-label-environments
   :type '(repeat (regexp :tag "Regular Expression")))