From: Chong Yidong Date: Sun, 5 Feb 2012 15:50:36 +0000 (+0800) Subject: Fix custom-variable-reset-backup's use of customized-value property. X-Git-Tag: emacs-pretest-24.0.94~303 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5c2a252fadc5e9129d34393688171e221cbb10ca;p=emacs.git Fix custom-variable-reset-backup's use of customized-value property. * cus-edit.el (custom-variable-reset-backup): Quote the value before storing it in the customized-value property. Fixes: debbugs:6712 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 93dd50b5ecb..17cb98be604 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2012-02-05 Chong Yidong + * 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). diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index d7b1b6f94fb..e4d87b89450 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -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)