]> git.eshelyaron.com Git - emacs.git/commitdiff
(face-x-resources): Make custom type more specific.
authorDave Love <fx@gnu.org>
Sun, 10 Sep 2000 21:55:22 +0000 (21:55 +0000)
committerDave Love <fx@gnu.org>
Sun, 10 Sep 2000 21:55:22 +0000 (21:55 +0000)
(frame-background-mode): Use mapc.
(region) <defcustom>: Add :version.

lisp/faces.el

index e1eedb84dd8ad319f99e7ea4c7997bd3df2f070d..fa0a68eda6d7094096e78101fa0e41fa7adbf84a 100644 (file)
@@ -25,7 +25,9 @@
 ;;; Code:
 
 (eval-when-compile
-  (require 'cl))
+  (require 'cl)
+  ;; Warning suppression -- can't require x-win in batch:
+  (autoload 'xw-defined-colors "x-win"))
 
 (require 'cus-face)
 
@@ -274,7 +276,7 @@ Each element has the form (ATTRIBUTE ENTRY1 ENTRY2...) where ATTRIBUTE is
 the name of a face attribute, and each ENTRY is a cons of the form
 (RESOURCE . CLASS) with RESOURCE being the resource and CLASS being the
 X resource class for the attribute."
-  :type 'sexp
+  :type '(repeat (cons symbol (repeat (cons string string))))
   :group 'faces)
 
 
@@ -1290,7 +1292,7 @@ this won't have the expected effect."
   :group 'faces
   :set #'(lambda (var value)
           (set-default var value)
-          (mapcar 'frame-set-background-mode (frame-list)))
+          (mapc 'frame-set-background-mode (frame-list)))
   :initialize 'custom-initialize-changed
   :type '(choice (choice-item dark)
                 (choice-item light)
@@ -1568,6 +1570,7 @@ created."
      (:background "light goldenrod yellow"))
     (t (:background "gray")))
   "Basic face for highlighting the region."
+  :version "21.1"
   :group 'basic-faces)