diff options
author | Markus Rost <rost@math.uni-bielefeld.de> | 2002-10-09 15:18:44 +0000 |
---|---|---|
committer | Markus Rost <rost@math.uni-bielefeld.de> | 2002-10-09 15:18:44 +0000 |
commit | 1d58631a6170c8e88772af293dfffdc15e897edf (patch) | |
tree | 9077fcf6de29591685dd757c0bfa087a989a37ac /lisp/cus-edit.el | |
parent | 3f34081a9b925b5e0192f7a776376548c498ec60 (diff) | |
download | emacs-1d58631a6170c8e88772af293dfffdc15e897edf.tar.gz |
(Custom-reset-current): Don't test for default-boundp.
(Custom-reset-saved): Don't test for saved-value.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r-- | lisp/cus-edit.el | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 99152e85dbf..58fd8b16ba9 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -675,22 +675,20 @@ when the action is chosen.") (interactive) (let ((children custom-options)) (mapc (lambda (widget) - (and (default-boundp (widget-value widget)) - (if (memq (widget-get widget :custom-state) - '(modified changed)) - (widget-apply widget :custom-reset-current)))) - children))) + (if (memq (widget-get widget :custom-state) + '(modified changed)) + (widget-apply widget :custom-reset-current))) + children))) (defun Custom-reset-saved (&rest ignore) "Reset all modified or set group members to their saved value." (interactive) (let ((children custom-options)) (mapc (lambda (widget) - (and (get (widget-value widget) 'saved-value) - (if (memq (widget-get widget :custom-state) - '(modified set changed rogue)) - (widget-apply widget :custom-reset-saved)))) - children))) + (if (memq (widget-get widget :custom-state) + '(modified set changed rogue)) + (widget-apply widget :custom-reset-saved))) + children))) (defun Custom-reset-standard (&rest ignore) "Erase all customization (either current or saved) for the group members. |