Commit 5c2a252f authored by Chong Yidong's avatar Chong Yidong
Browse files

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
parent aa4589a7
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).
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment