Fix custom-variable-reset-backup's use of customized-value property.
authorChong Yidong <cyd@gnu.org>
Sun, 5 Feb 2012 15:50:36 +0000 (23:50 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 5 Feb 2012 15:50:36 +0000 (23:50 +0800)
* cus-edit.el (custom-variable-reset-backup): Quote the value
before storing it in the customized-value property.

Fixes: debbugs:6712

lisp/ChangeLog
lisp/cus-edit.el

index 93dd50b..17cb98b 100644 (file)
@@ -1,5 +1,8 @@
 2012-02-05  Chong Yidong  <cyd@gnu.org>
 
+       * cus-edit.el (custom-variable-reset-backup): Quote the value
+       before storing it in the customized-value property (Bug#6712).
+
        * wid-edit.el (widget-field-value-get): New optional arg to
        suppress trailing whitespace truncation.
        (character): Use it (Bug#2689).
index d7b1b6f..e4d87b8 100644 (file)
@@ -3071,7 +3071,7 @@ to switch between two values."
              (funcall set symbol (car value))
             (error nil)))
       (error "No backup value for %s" symbol))
-    (put symbol 'customized-value (list (car value)))
+    (put symbol 'customized-value (list (custom-quote (car value))))
     (put symbol 'variable-comment comment)
     (put symbol 'customized-variable-comment comment)
     (custom-variable-state-set widget)