diff lisp/cus-edit.el @ 66941:1710aca8150f

(Custom-reset-standard): Verify that :custom-standard-value prop exists before calling it. (face): Enclose %t in %{...%}.
author Richard M. Stallman <rms@gnu.org>
date Wed, 16 Nov 2005 22:15:07 +0000
parents b39a51cbc6b6
children 38c5bc4332b9
line wrap: on
line diff
--- a/lisp/cus-edit.el	Wed Nov 16 22:12:20 2005 +0000
+++ b/lisp/cus-edit.el	Wed Nov 16 22:15:07 2005 +0000
@@ -799,7 +799,8 @@
   (interactive)
   (let ((children custom-options))
     (mapc (lambda (widget)
-	    (and (widget-apply widget :custom-standard-value)
+	    (and (widget-get widget :custom-standard-value)
+		 (widget-apply widget :custom-standard-value)
 		 (if (memq (widget-get widget :custom-state)
 			   '(modified set changed saved rogue))
 		     (widget-apply widget :custom-reset-standard))))
@@ -3397,7 +3398,7 @@
 
 (define-widget 'face 'symbol
   "A Lisp face name (with sample)."
-  :format "%t: (%{sample%}) %v"
+  :format "%{%t%}: (%{sample%}) %v"
   :tag "Face"
   :value 'default
   :sample-face-get 'widget-face-sample-face-get