Use find-file-hook instead of find-file-hooks.
[bpt/emacs.git] / lisp / custom.el
index e75cdc3..7466913 100644 (file)
@@ -1,7 +1,7 @@
 ;;; custom.el --- tools for declaring and initializing options
 ;;
 ;; Copyright (C) 1996, 1997, 1999, 2001, 2002, 2003, 2004,
-;;   2005, 2006, 2007 Free Software Foundation, Inc.
+;;   2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 ;;
 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
 ;; Maintainer: FSF
@@ -583,10 +583,10 @@ This recursively follows aliases."
   "Inform Custom that VARIABLE has been set (changed).
 VARIABLE is a symbol that names a user option.
 The result is that the change is treated as having been made through Custom."
-  (interactive "vVariable: ")
   (put variable 'customized-value (list (custom-quote (eval variable)))))
-  \f
-  ;;; Custom Themes
+
+\f
+;;; Custom Themes
 
 ;;; Loading files needed to customize a symbol.
 ;;; This is in custom.el because menu-bar.el needs it for toggle cmds.
@@ -1176,9 +1176,9 @@ This function returns nil if no custom theme specifies a value for VARIABLE."
 (defun custom-theme-recalc-face (face)
   "Set FACE according to currently enabled custom themes."
   (if (facep face)
-      (let ((theme-faces (reverse (get face 'theme-face))))
-       (dolist (spec theme-faces)
-         (face-spec-set face (cadr spec))))))
+      (face-spec-set face
+                     (get (or (get face 'face-alias) face)
+                          'face-override-spec))))
 \f
 ;;; XEmacs compability functions