diff lisp/custom/cus-edit.el @ 197:acd284d43ca1 r20-3b25

Import from CVS: tag r20-3b25
author cvs
date Mon, 13 Aug 2007 10:00:02 +0200
parents a2f645c6b9f8
children eb5470882647
line wrap: on
line diff
--- a/lisp/custom/cus-edit.el	Mon Aug 13 09:59:07 2007 +0200
+++ b/lisp/custom/cus-edit.el	Mon Aug 13 10:00:02 2007 +0200
@@ -2275,7 +2275,7 @@
 		    (spec (or (get symbol 'saved-face)
 			      (get symbol 'face-defface-spec)
 			      ;; Attempt to construct it.
-			      (list (list t (custom-face-attributes-get 
+			      (list (list t (face-custom-attributes-get 
 					     symbol (selected-frame))))))
 		    (form (widget-get widget :custom-form))
 		    (indent (widget-get widget :indent))
@@ -2930,7 +2930,8 @@
 (defun custom-save-delete (symbol)
   "Delete the call to SYMBOL form `custom-file'.
 Leave point at the location of the call, or after the last expression."
-  (set-buffer (find-file-noselect custom-file))
+  (let ((find-file-hooks nil))
+    (set-buffer (find-file-noselect custom-file)))
   (goto-char (point-min))
   (catch 'found
     (while t
@@ -3036,8 +3037,9 @@
   (let ((inhibit-read-only t))
     (custom-save-variables)
     (custom-save-faces)
-    (with-current-buffer (find-file-noselect custom-file)
-      (save-buffer))))
+    (let ((find-file-hooks nil))
+      (with-current-buffer (find-file-noselect custom-file)
+	(save-buffer)))))
 
 
 ;;; The Customize Menu.
@@ -3074,7 +3076,10 @@
   "Ignoring WIDGET, create a menu entry for customization group SYMBOL."
   `( ,(custom-unlispify-menu-entry symbol t)
      :filter (lambda (&rest junk)
-	       (cdr (custom-menu-create ',symbol)))))
+	       (let ((item (custom-menu-create ',symbol)))
+		 (if (listp item)
+		     (cdr item)
+		   (list item))))))
 
 ;;;###autoload
 (defun custom-menu-create (symbol)