]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 4307577950f52be39a98555794ebcc644d80dca0..d299aeead4998320f6ff188de2fa60b4dba7ab49 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 c00cf36c79ec3253ebdf58d90db228fbb5575fb9..a220002286e613f88976098a200cbd802df90eb8 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")))