;ELC   
;;; compiled by amu@tux.mit.edu on Sun Jan  3 22:58:24 1999
;;; from file /afs/sipb.mit.edu/contrib/emacs/packages/custom-1.9962/cus-face.el
;;; emacs version 19.34.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 "!\f\" M \"\f\"% M* \"\f\"7 ͂8 \"!H \"Z !V \"Z M!d M!n M!x M! M \f\" \" \"! \f\" \" ! M M" [require custom 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 custom-frame-parameter frame-parameter #[(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 internal-find-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: "] ignore] 5)
(custom-declare-variable (quote initialize-face-resources) (quote 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 (quote customize) :type (quote boolean))
(byte-code "! ! M \"" [fboundp initialize-face-resources 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."] defalias ignore] 3)
(custom-declare-variable (quote custom-background-mode) (quote 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." :group (quote customize) :type (quote (choice (const dark) (const light) (const :tag "default" nil))))
#@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 !" [custom-frame-parameter 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 (#$ . 3712)])
(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 custom-frame-parameter background-mode] 8 "Return a plist with the frame properties of FRAME used by custom."] #[(frame) "	\f\" \f\" \f!" [type window-system class custom-frame-parameter 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 	#!o !o N9 	 !\"i @A#N !+ ! \"#!" [fboundp load-gc boundp purify-flag error "Attempt to declare a face during dump" face face-defface-spec 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 (#$ . 4886)])
#@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 (boolean :tag "Bold" :help-echo "Control whether a bold font should be used.") custom-set-face-bold custom-face-bold) (:italic (boolean :tag "Italic" :help-echo "Control whether an italic font should be used.") custom-set-face-italic custom-face-italic) (:underline (boolean :tag "Underline" :help-echo "Control whether the text should be underlined.") set-face-underline-p face-underline-p) (:foreground (color :tag "Foreground" :value "" :help-echo "Set foreground color.") set-face-foreground custom-face-foreground) (:background (color :tag "Background" :value "" :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))) (#$ . 5549))
#@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 (#$ . 6958)])
#@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) "+ @A8ʏ ," [nil (byte-code "!" [require font] 2) ((error)) custom-face-attributes get result att atts 3 (byte-code ") 	\n\"\n\"( A@#( @BB)ć" [get face frame answer default widget-apply att :match result] 5) ((error))] 4 (#$ . 7328)])
#@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 (#$ . 7842)])
#@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 (#$ . 8039)])
#@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 (#$ . 8259)])
#@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 (#$ . 8464)])
#@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 (#$ . 8690)])
(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 "%s" 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)
#@204 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.

Clear all existing attributes first.
(defalias 'face-spec-set #[(face spec &optional frame) "!\f \f#\f#" [fboundp copy-face custom-face-empty face frame custom-face-display-set spec] 4 (#$ . 10494)])
#@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 face-spec-set-match-display frame face custom-face-display apply custom-face-attributes-set put nil] 6 (#$ . 10879)])
#@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 (#$ . 11360))
#@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 custom-frame-parameter custom-properties cache custom-extract-frame-properties modify-frame-parameters custom-default-frame-properties selected-frame] 5 (#$ . 11679)])
#@80 Non-nil iff DISPLAY matches FRAME.
If FRAME is nil, the current FRAME is used.
(defalias 'face-spec-set-match-display #[(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 message format "Warning: Unknown req `%S' with options `%S'"] 5 (#$ . 12085)])
#@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 (#$ . 12584)])
#@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 face-defface-spec spec custom-face-display-set frame initialize-face-resources] 5] face-list] 3 (#$ . 12835)])
#@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 (#$ . 13185)])
(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) "S @<= 	@	A@	8\f#' #1 !6 \f\"A+O @A@\f#*AA)  " [args entry 2 now spec face put saved-face force-face t custom-facep face-spec-set] 5 (#$ . 13545)])
(provide (quote cus-face))
