diff lisp/custom/cus-face.el @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents bfd6434d15b3
children 489f57a838ef
line wrap: on
line diff
--- a/lisp/custom/cus-face.el	Mon Aug 13 09:54:24 2007 +0200
+++ b/lisp/custom/cus-face.el	Mon Aug 13 09:55:28 2007 +0200
@@ -4,7 +4,7 @@
 ;;
 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
 ;; Keywords: help, faces
-;; Version: 1.9954
+;; Version: 1.9956
 ;; X-URL: http://www.dina.kvl.dk/~abraham/custom/
 
 ;;; Commentary:
@@ -86,10 +86,12 @@
 
 (unless (fboundp 'make-empty-face)
   ;; This should be moved to `faces.el'.
-  (if (string-match "XEmacs" emacs-version)
-      ;; Give up for old XEmacs pre 19.15/20.1.
-      (defalias 'make-empty-face 'make-face)
-    ;; Define for Emacs pre 19.35.
+  (cond
+   ((string-match "XEmacs" emacs-version)
+    ;; Give up for old XEmacs pre 19.15/20.1.
+    (defalias 'make-empty-face 'make-face))
+   ((fboundp 'internal-find-face)
+    ;; We can do faces...
     (defun make-empty-face (name)
       "Define a new FACE on all frames, ignoring X resources."
       (interactive "SMake face: ")
@@ -112,7 +114,9 @@
 	    (if (fboundp 'facemenu-add-new-face)
 		(facemenu-add-new-face name))
 	    face))
-      name)))
+      name))
+   (t
+    (fset 'make-empty-face 'ignore))))
 
 (defcustom initialize-face-resources t
   "If non nil, allow X resources to initialize face properties.
@@ -270,12 +274,12 @@
 		set-face-underline-p
 		face-underline-p)
     (:foreground (color :tag "Foreground"
-			:value "black"
+			:value ""
 			:help-echo "Set foreground color.")
 		 set-face-foreground
 		 custom-face-foreground)
     (:background (color :tag "Background"
-			:value "white"
+			:value ""
 			:help-echo "Set background color.")
 		 set-face-background
 		 custom-face-background)