]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-annotate.el (vc-annotate-background-mode): Add :set
authorJuri Linkov <juri@jurta.org>
Sat, 9 Aug 2014 23:55:39 +0000 (02:55 +0300)
committerJuri Linkov <juri@jurta.org>
Sat, 9 Aug 2014 23:55:39 +0000 (02:55 +0300)
to reevaluate `vc-annotate-color-map'.

Fixes: debbugs:18189
lisp/ChangeLog
lisp/vc/vc-annotate.el

index f62d0ee3b6632c7051694081dac1c999dc0ff666..b0a0e0c95a0f4b7e7bbc8f23b74ad87164bdddd5 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-09  Juri Linkov  <juri@jurta.org>
+
+       * vc/vc-annotate.el (vc-annotate-background-mode): Add :set
+       to reevaluate `vc-annotate-color-map'.  (Bug#18189)
+
 2014-08-09  Alan Mackenzie  <acm@muc.de>
 
        * progmodes/cc-fonts.el (c-font-lock-declarators): Remove check
index d3e10a63f56b369ffbc234b82669eb851175c771..a9085bc901fa02483c0a20477f256e4c42ba4128 100644 (file)
@@ -54,6 +54,12 @@ When nil, the color range from `vc-annotate-color-map' is applied
 to the foreground, and the color from the option `vc-annotate-background'
 is applied to the background."
   :type 'boolean
+  :set (lambda (symbol value)
+        (set-default symbol value)
+        (when (boundp 'vc-annotate-color-map)
+          (ignore-errors
+            ;; Update the value of the dependent variable.
+            (custom-reevaluate-setting 'vc-annotate-color-map))))
   :version "24.5"
   :group 'vc)