?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/faces.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:50 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/faces.el ;;; in Emacs version 24.3 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@254 If non-nil, Emacs startup performs terminal-specific initialization. It does this by: (load (concat term-file-prefix (getenv "TERM"))) You may set this variable to nil in your init file if you do not wish the terminal-initialization file to be loaded. (custom-declare-variable 'term-file-prefix '(purecopy "term/") '(#$ . 547) :type '(choice (const :tag "No terminal-specific initialization" nil) (string :tag "Name of directory with term files")) :group 'terminals) #@148 History list for some commands that read face names. Maximum length of the history list is determined by the value of `history-length', which see. (defvar face-name-history nil (#$ . 1022)) (byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312\313\314\315\304\301\316\317&\210\306\320\321\322\312\323\314\324\304\301\316\325&\210\306\326\327\330\312\331\314\332\333\334\304\301\316\335& \207" [custom-declare-group font-selection nil "Influencing face font selection." :group faces custom-declare-variable face-font-selection-order '(:width :height :weight :slant) "A list specifying how face font selection chooses fonts.\nEach of the four symbols `:width', `:height', `:weight', and `:slant'\nmust appear once in the list, and the list must not contain any other\nelements. Font selection first tries to find a best matching font\nfor those face attributes that appear before in the list. For\nexample, if `:slant' appears before `:height', font selection first\ntries to find a font with a suitable slant, even if this results in\na font height that isn't optimal." :tag "Font selection order" :type (list symbol symbol symbol symbol) :set #[(symbol value) "\302 \"\210\303 !\207" [symbol value set-default internal-set-font-selection-order] 3] face-font-family-alternatives (mapcar (lambda (arg) (mapcar 'purecopy arg)) '(("Monospace" "courier" "fixed") ("courier" "CMU Typewriter Text" "fixed") ("Sans Serif" "helv" "helvetica" "arial" "fixed") ("helv" "helvetica" "arial" "fixed"))) "Alist of alternative font family names.\nEach element has the form (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...).\nIf fonts of family FAMILY can't be loaded, try ALTERNATIVE1, then\nALTERNATIVE2 etc." "Alternative font families to try" (repeat (repeat string)) #[(symbol value) "\302 \"\210\303 !\207" [symbol value set-default internal-set-alternative-font-family-alist] 3] face-font-registry-alternatives (mapcar (lambda (arg) (mapcar 'purecopy arg)) (if (featurep 'w32) '(("iso8859-1" "ms-oemlatin") ("gb2312.1980" "gb2312" "gbk" "gb18030") ("jisx0208.1990" "jisx0208.1983" "jisx0208.1978") ("ksc5601.1989" "ksx1001.1992" "ksc5601.1987") ("muletibetan-2" "muletibetan-0")) '(("gb2312.1980" "gb2312.80&gb8565.88" "gbk" "gb18030") ("jisx0208.1990" "jisx0208.1983" "jisx0208.1978") ("ksc5601.1989" "ksx1001.1992" "ksc5601.1987") ("muletibetan-2" "muletibetan-0")))) "Alist of alternative font registry names.\nEach element has the form (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...).\nIf fonts of registry REGISTRY can be loaded, font selection\ntries to find a best matching font among all fonts of registry\nREGISTRY, ALTERNATIVE1, ALTERNATIVE2, and etc." "Alternative font registries to try" (repeat (repeat string)) :version "21.1" #[(symbol value) "\302 \"\210\303 !\207" [symbol value set-default internal-set-alternative-font-registry-alist] 3]] 14) #@37 Return a list of all defined faces. (defalias 'face-list #[nil "\301\302\"\207" [face-new-frame-defaults mapcar car] 3 (#$ . 3877)]) #@272 Define a new face with name FACE, a symbol. Do not call this directly from Lisp code; use `defface' instead. If NO-INIT-FROM-RESOURCES is non-nil, don't initialize face attributes from X resources. If FACE is already known as a face, leave it unmodified. Return FACE. (defalias 'make-face #[(face &optional no-init-from-resources) "\304!\2041 \305 \306\211\203 \n@\307 \"\210\nA\211\204 *\310\311!\203) \311!\210\2041 \312!\210\207" [face frame --dolist-tail-- no-init-from-resources facep frame-list nil internal-make-lisp-face fboundp facemenu-add-new-face make-face-x-resource-internal] 4 (#$ . 4018) (list (read-from-minibuffer "Make face: " nil nil t 'face-name-history))]) #@107 Define a new, empty face with name FACE. Do not call this directly from Lisp code; use `defface' instead. (defalias 'make-empty-face #[(face) "\301\302\"\207" [face make-face no-init-from-resources] 3 (#$ . 4719) (list (read-from-minibuffer "Make empty face: " nil nil t 'face-name-history))]) #@782 Define a face named NEW-FACE, which is a copy of OLD-FACE. This function does not copy face customization data, so NEW-FACE will not be made customizable. Most Lisp code should not call this function; use `defface' with :inherit instead. If NEW-FACE already exists as a face, modify it to be like OLD-FACE. If NEW-FACE doesn't already exist, create it. If the optional argument FRAME is a frame, change NEW-FACE on FRAME only. If FRAME is t, copy the frame-independent default specification for OLD-FACE to NEW-FACE. If FRAME is nil, copy the defaults as well as the faces on each existing frame. If the optional fourth argument NEW-FRAME is given, copy the information from face OLD-FACE on frame FRAME to NEW-FACE on frame NEW-FRAME. In this case, FRAME must not be nil. (defalias 'copy-face #[(old-face new-face &optional frame new-frame) "\306 \2046 \n\203 \307\310\"\210\311\f!\210\312 \313\211\203, @\314\f #\210 A\211\204 *\314\f\306#\210\202A \311\f!\210\315\f \n$\210\f)\207" [inhibit-quit frame new-frame old-face new-face --dolist-tail-- t error "Copying face %s from all frames to one frame" make-empty-face frame-list nil copy-face internal-copy-lisp-face] 6 (#$ . 5021)]) #@96 Return non-nil if FACE is a face name; nil otherwise. A face name can be a string or a symbol. (defalias 'facep #[(face) "\301!\207" [face internal-lisp-face-p] 2 (#$ . 6233)]) #@61 Signal an error if FACE doesn't name a face. Value is FACE. (defalias 'check-face #[(face) "\301!\204 \302\303\"\210\207" [face facep error "Not a face: %s"] 3 (#$ . 6417)]) #@217 Return the internal ID of face with name FACE. If FACE is a face-alias, return the ID of the target face. The optional argument FRAME is ignored, since the internal face ID of a face name is the same for all frames. (defalias 'face-id #[(face &optional _frame) "\301!\210\300N\206 \302\303N!\207" [face check-face face-id face-alias] 3 (#$ . 6602)]) #@317 Non-nil if faces FACE1 and FACE2 are equal. Faces are considered equal if all their attributes are equal. If the optional argument FRAME is given, report on FACE1 and FACE2 in that frame. If FRAME is t, report on the defaults for FACE1 and FACE2 (for new frames). If FRAME is omitted or nil, use the selected frame. (defalias 'face-equal #[(face1 face2 &optional frame) "\303 \n#\207" [face1 face2 frame internal-lisp-face-equal-p] 4 (#$ . 6963)]) #@266 Return non-nil if FACE displays differently from the default face. If the optional argument FRAME is given, report on face FACE in that frame. If FRAME is t, report on the defaults for face FACE (for new frames). If FRAME is omitted or nil, use the selected frame. (defalias 'face-differs-from-default-p #[(face &optional frame) "\306\307\310\311\"\"\312\n\2036 \2046 \n\211A@\313\f \314$\211\315=\2042 \316D \"\2032 *\202\n *\207" [face-attribute-name-alist differs attrs attr face frame delq :inherit mapcar car nil face-attribute t unspecified display-supports-face-attributes-p attr-val] 6 (#$ . 7419)]) #@245 True if face FACE has some non-nil attribute. If the optional argument FRAME is given, report on face FACE in that frame. If FRAME is t, report on the defaults for face FACE (for new frames). If FRAME is omitted or nil, use the selected frame. (defalias 'face-nontrivial-p #[(face &optional frame) "\302 \"?\207" [face frame internal-lisp-face-empty-p] 3 (#$ . 8049)]) #@303 List of X resources and classes for face attributes. 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. (custom-declare-variable 'face-x-resources '(mapcar (lambda (arg) (cons (car arg) (cons (purecopy (car (cdr arg))) (purecopy (cdr (cdr arg)))))) '((:family (".attributeFamily" . "Face.AttributeFamily")) (:foundry (".attributeFoundry" . "Face.AttributeFoundry")) (:width (".attributeWidth" . "Face.AttributeWidth")) (:height (".attributeHeight" . "Face.AttributeHeight")) (:weight (".attributeWeight" . "Face.AttributeWeight")) (:slant (".attributeSlant" . "Face.AttributeSlant")) (:foreground (".attributeForeground" . "Face.AttributeForeground")) (:background (".attributeBackground" . "Face.AttributeBackground")) (:overline (".attributeOverline" . "Face.AttributeOverline")) (:strike-through (".attributeStrikeThrough" . "Face.AttributeStrikeThrough")) (:box (".attributeBox" . "Face.AttributeBox")) (:underline (".attributeUnderline" . "Face.AttributeUnderline")) (:inverse-video (".attributeInverse" . "Face.AttributeInverse")) (:stipple (".attributeStipple" . "Face.AttributeStipple") (".attributeBackgroundPixmap" . "Face.AttributeBackgroundPixmap")) (:bold (".attributeBold" . "Face.AttributeBold")) (:italic (".attributeItalic" . "Face.AttributeItalic")) (:font (".attributeFont" . "Face.AttributeFont")) (:inherit (".attributeInherit" . "Face.AttributeInherit")))) '(#$ . 8426) :type '(repeat (cons symbol (repeat (cons string string)))) :group 'faces) #@231 Set FACE's ATTRIBUTE from X resource RESOURCE, class CLASS on FRAME. Value is the attribute value specified by the resource, or nil if not present. This function displays a message if the resource specifies an invalid attribute. (defalias 'set-face-attribute-from-resource #[(face attribute resource class frame) "\301!\306 \nP\f#\211\203 \307\310\311\217\210 *\207" [face face-name resource class frame value internal-face-x-get-resource nil (byte-code "\304 \n\227$\207" [face attribute value frame internal-set-lisp-face-attribute-from-resource] 5) ((error (message "Face %s, frame %s: invalid attribute %s %s from X resource" face-name frame attribute value)))] 5 (#$ . 10098)]) #@52 Set attributes of FACE from X resources for FRAME. (defalias 'set-face-attributes-from-resources #[(face frame) "\306!\307>\205>