]> git.eshelyaron.com Git - emacs.git/commitdiff
(Custom-reset-current): Don't test for default-boundp.
authorMarkus Rost <rost@math.uni-bielefeld.de>
Fri, 11 Oct 2002 06:24:12 +0000 (06:24 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Fri, 11 Oct 2002 06:24:12 +0000 (06:24 +0000)
(Custom-reset-saved):  Don't test for saved-value.

lisp/cus-edit.el

index ce9829578f4dc742db8e3a024c6d692bf7d08ce4..ca29f2217160186c7316d89ce14fa8928aecf677 100644 (file)
@@ -672,22 +672,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.