;ELC   
;;; compiled by amu@mit.edu on Sat Sep 13 16:18:47 1997
;;; from file /afs/sipb.mit.edu/contrib/emacs/packages/gnus-5.4.67/lisp/cus-face.el
;;; emacs version 19.30.1.
;;; bytecomp version FSF 2.10
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`cus-face.el' was compiled for Emacs 19.29 or later"))


(byte-code "!!\" M \"\") M. \"\"; ΂< \"!H M!R M!\\ M!f M!s M \" \" \"! \" \" M$&&! ! M \"$&&" [require custom cl string-match "XEmacs" emacs-version custom-face-background #[(face &optional frame) "!\f\"!" [color-instance-name specifier-instance face-background face frame] 4 "Return the background color name of face FACE, or nil if unspecified."] defalias face-background custom-face-foreground #[(face &optional frame) "!\f\"!" [color-instance-name specifier-instance face-foreground face frame] 4 "Return the background color name of face FACE, or nil if unspecified."] face-foreground custom-face-font-name face-font-name face-font fboundp frame-property #[(frame property &optional default) "\n!A\n " [property frame-parameters frame default] 3 "Return FRAME's value for property PROPERTY."] face-doc-string #[(face) "N" [face face-documentation] 2 "Get the documentation string for FACE."] set-face-doc-string #[(face string) "	#" [put face face-documentation string] 4 "Set the documentation string for FACE to STRING."] x-color-values #[(color &optional frame) "\n!!" [color-instance-rgb-components make-color-instance color] 3 "Return a description of the color named COLOR on frame FRAME.\nThe value is a list of integer RGB values--(RED GREEN BLUE).\nThese values appear to range from 0 to 65280 or 65535, depending\non the system; white is (65280 65280 65280) or (65535 65535 65535).\nIf FRAME is omitted or nil, use the selected frame."] facep custom-facep #[(face) "" [nil] 1 "No faces"] find-face make-empty-face make-face #[(name) "	!^ \"I	I 	 !I	J 	@	!B	@!B\"	A	0 	BB+!] 	!)	" [internal-find-face name make-vector 8 nil face 0 1 frame-list frames t inhibit-quit internal-next-face-id id make-face-internal 2 set-frame-face-alist copy-sequence frame-face-alist global-face-data fboundp facemenu-add-new-face] 6 "Define a new FACE on all frames, ignoring X resources." "SMake face: "] custom-declare-variable initialize-face-resources t "If non nil, allow X resources to initialize face properties.\nThis only affects faces declared with `defface', and only NT or X11 frames." :group customize :type boolean make-face-x-resource-internal #[(face &optional frame) "	 \n#" [initialize-face-resources make-face-x-resource-internal face frame t] 4 "Initialize face according to the X11 resources.\nThis might overwrite existing face properties.\nDoes nothing when the variable initialize-face-resources is nil."] ignore custom-background-mode nil "The brightness of the background.\nSet this to the symbol dark if your background color is dark, light if\nyour background is light, or nil (default) if you want Emacs to\nexamine the brightness for you." (choice (choice-item dark) (choice-item light) (choice-item :tag "default" nil))] 8)
#@45 Kludge to detect background mode for FRAME.
(defalias 'custom-background-mode #[(frame) " !? Ǐ> \n\"( > \f!\"!\"ХW> т? BC\"+" [nil (byte-code "#" [x-get-resource ".backgroundMode" "BackgroundMode" string] 4) ((error)) bg-resource color intern (byte-code "	\"\n !" [frame-property frame background-color custom-face-background default] 3) ((error)) string-match "XEmacs" emacs-version window-system apply + x-color-values "white" 3 dark light mode modify-frame-parameters frame background-mode] 5 (#$ . 3475)])
(byte-code "\n\" M M" [string-match "XEmacs" emacs-version custom-extract-frame-properties #[(frame) "!!!! \" !" [type device-type frame-device frame class device-class background custom-background-mode frame-property background-mode] 8 "Return a plist with the frame properties of FRAME used by custom."] #[(frame) "	\f\" \f\" \f!" [type window-system class frame-property frame display-type background custom-background-mode background-mode] 8 "Return a plist with the frame properties of FRAME used by custom."]] 3)
#@61 Like `defface', but FACE is evaluated as a normal argument.
(defalias 'custom-declare-face #[(face spec doc &rest args) "!\n !\fNy \f#!] \f!] \fN+  \f!\f\"X @A\f#> \f!+n \f!n \f\"\f#!\f" [fboundp load-gc error "Attempt to declare a face during dump" face factory-face put spec facep custom-facep saved-face custom-relevant-frames nil frame frames value make-empty-face custom-face-display-set initialize-face-resources doc face-doc-string set-face-doc-string custom-handle-all-keywords args custom-face run-hooks custom-define-hook] 4 (#$ . 4625)])
#@560 Alist of face attributes. 

The elements are of the form (KEY TYPE SET GET) where KEY is a symbol
identifying the attribute, TYPE is a widget type for editing the
attibute, SET is a function for setting the attribute value, and GET is a function for getiing the attribute value. 

The SET function should take three arguments, the face to modify, the
value of the attribute, and optionally the frame where the face should
be changed.

The GET function should take two arguments, the face to examine, and
optonally the frame where the face should be examined.
(defconst custom-face-attributes (quote ((:bold (toggle :format "Bold: %[%v%]\n" :help-echo "Control whether a bold font should be used.") custom-set-face-bold custom-face-bold) (:italic (toggle :format "Italic: %[%v%]\n" :help-echo "Control whether an italic font should be used.") custom-set-face-italic custom-face-italic) (:underline (toggle :format "Underline: %[%v%]\n" :help-echo "Control whether the text should be underlined.") set-face-underline-p face-underline-p) (:foreground (color :tag "Foreground" :value "black" :help-echo "Set foreground color.") set-face-foreground custom-face-foreground) (:background (color :tag "Background" :value "white" :help-echo "Set background color.") set-face-background custom-face-background) (:stipple (editable-field :format "Stipple: %v" :help-echo "Name of background bitmap file.") set-face-stipple custom-face-stipple))) (#$ . 5255))
#@157 For FACE on FRAME set the attributes [KEYWORD VALUE]....
Each keyword should be listed in `custom-face-attributes'.

If FRAME is nil, set the default face.
(defalias 'custom-face-attributes-set #[(face frame &rest atts) " @A@	\f8AAȏ+  " [atts name value 2 custom-face-attributes fun nil (funcall fun face value frame) ((error))] 3 (#$ . 6710)])
#@157 For FACE on FRAME get the attributes [KEYWORD VALUE]....
Each keyword should be listed in `custom-face-attributes'.

If FRAME is nil, use the default face.
(defalias 'custom-face-attributes-get #[(face frame) "S @A8 \f	\n\"\f\n\"O A@#O @BB) ," [nil (byte-code "!" [require font] 2) ((error)) custom-face-attributes get result att atts 3 face frame answer default widget-apply :match] 5 (#$ . 7080)])
#@41 Set the bold property of FACE to VALUE.
(defalias 'custom-set-face-bold #[(face value &optional frame) "	 \n\"\n\"" [value make-face-bold face frame make-face-unbold] 3 (#$ . 7549)])
#@45 Return non-nil if the font of FACE is bold.
(defalias 'custom-face-bold #[(face &rest args) "\n#\f!!*" [apply custom-face-font-name face args font font-create-object fontobj font-bold-p] 4 (#$ . 7746)])
#@43 Set the italic property of FACE to VALUE.
(defalias 'custom-set-face-italic #[(face value &optional frame) "	 \n\"\n\"" [value make-face-italic face frame make-face-unitalic] 3 (#$ . 7966)])
#@47 Return non-nil if the font of FACE is italic.
(defalias 'custom-face-italic #[(face &rest args) "\n#\f!!*" [apply custom-face-font-name face args font font-create-object fontobj font-italic-p] 4 (#$ . 8171)])
#@52 Return the name of the stipple file used for FACE.
(defalias 'custom-face-stipple #[(face &rest args) "\n\" !# !)#" [string-match "XEmacs" emacs-version apply specifier-instance face-background-pixmap face args image image-instance-file-name face-stipple] 5 (#$ . 8397)])
(byte-code "\n\"$ #MMMM\"Ƈ" [string-match "XEmacs" emacs-version autoload font-create-object "font" nil custom-set-face-font-size #[(face size &rest args) "\n#\f!\"\n$*" [apply custom-face-font-name face args font font-create-object fontobj set-font-size size font-set-face-font] 5 "Set the font of FACE to SIZE"] custom-face-font-size #[(face &rest args) "\n#\f!!\"*" [apply custom-face-font-name face args font font-create-object fontobj format "%d" font-size] 4 "Return the size of the font of FACE as a string."] custom-set-face-font-family #[(face family &rest args) "\n#\f!\"\n$*" [apply custom-face-font-name face args font font-create-object fontobj set-font-family family font-set-face-font] 5 "Set the font of FACE to FAMILY."] custom-face-font-family #[(face &rest args) "\n#\f!!*" [apply custom-face-font-name face args font font-create-object fontobj font-family] 4 "Return the name of the font family of FACE."] append ((:family (editable-field :format "Font Family: %v" :help-echo "Name of font family to use (e.g. times).") custom-set-face-font-family custom-face-font-family) (:size (editable-field :format "Size: %v" :help-echo "Text size (e.g. 9pt or 2mm).") custom-set-face-font-size custom-face-font-size) (:strikethru (toggle :format "Strikethru: %[%v%]\n" :help-echo "Control whether the text should be strikethru.") set-face-strikethru-p face-strikethru-p)) custom-face-attributes] 4)
#@166 Set FACE to the attributes to the first matching entry in SPEC.
Iff optional FRAME is non-nil, set it for that frame only.
See `defface' for information about SPEC.
(defalias 'custom-face-display-set #[(face spec &optional frame) "!H \nH \n@@A@\nA\f\"D - \fN=6 $B \f#+ " [fboundp make-face spec entry display atts custom-display-match-frame frame face custom-face-display apply custom-face-attributes-set put nil] 6 (#$ . 10201)])
#@255 The frame properties used for the global faces.
Frames who doesn't match these propertiess should have frame local faces.
The value should be nil, if uninitialized, or a plist otherwise.  
See `defface' for a list of valid keys and values for the plist.
(defvar custom-default-frame-properties nil (#$ . 10681))
#@121 Return a plist with the frame properties of FRAME used by custom.
If FRAME is nil, return the default frame properties.
(defalias 'custom-get-frame-properties #[(&optional frame) " \" !BC\")(  !" [frame frame-property custom-properties cache custom-extract-frame-properties modify-frame-parameters custom-default-frame-properties selected-frame] 5 (#$ . 11000)])
#@80 Non-nil iff DISPLAY matches FRAME.
If FRAME is nil, the current FRAME is used.
(defalias 'custom-display-match-frame #[(display frame) "= !\f\"\f\"\f\"	\n\f\n 	 \n@\f\nA\n\f@\fA=Z > =i > =x > #	- 	.	" [display t custom-get-frame-properties frame props plist-get type class background match entries nil entry req options error "Unknown req `%S' with options `%S'"] 4 (#$ . 11398)])
#@65 List of frames whose custom properties differ from the default.
(defalias 'custom-relevant-frames #[nil "  \f& \f@\fA! B ," [nil custom-get-frame-properties frame-list frame frames default relevant] 4 (#$ . 11874)])
#@100 Initialize all custom faces for FRAME.
If FRAME is nil or omitted, initialize them for all frames.
(defalias 'custom-initialize-faces #[(&optional frame) " \"" [mapcar #[(symbol) "N	 N #\")" [symbol saved-face factory-face spec custom-face-display-set frame initialize-face-resources] 5] face-list] 3 (#$ . 12125)])
#@118 Initialize local faces for FRAME if necessary.
If FRAME is missing or nil, the first member of (frame-list) is used.
(defalias 'custom-initialize-frame #[(&optional frame) "  @ !? !" [frame frame-list custom-get-frame-properties custom-initialize-faces] 3 (#$ . 12470)])
(byte-code "!\n !" [fboundp make-face custom-face-empty] 2)
#@298 Initialize faces according to user preferences.
The arguments should be a list where each entry has the form:

  (FACE SPEC [NOW])

SPEC will be stored as the saved value for FACE.  If NOW is present
and non-nil, FACE will also be created according to SPEC.

See `defface' for the format of SPEC.
(defalias 'custom-set-faces #[(&rest args) "^ @<H 	@	A@	8\f#' #1 !A !< \"\f\"A+Z @A@\f#*AA)  " [args entry 2 now spec face put saved-face force-face t custom-facep fboundp copy-face custom-face-empty custom-face-display-set] 5 (#$ . 12830)])
(provide (quote cus-face))
