%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/faces.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\315\310\311\316\317& \207" [custom-declare-variable term-file-prefix funcall function #[0 "\300\301!\207" [purecopy "term/"] 2] "If non-nil, Emacs startup performs terminal-specific initialization.\nIt does this by: (load (concat term-file-prefix (getenv \"TERM\")))\n\nYou may set this variable to nil in your init file if you do not wish\nthe terminal-initialization file to be loaded." :type (choice (const :tag "No terminal-specific initialization" nil) (string :tag "Name of directory with term files")) :group terminals term-file-aliases #[0 "\300\207" [(("apollo" . "vt100") ("vt102" . "vt100") ("vt125" . "vt100") ("vt201" . "vt200") ("vt220" . "vt200") ("vt240" . "vt200") ("vt300" . "vt200") ("vt320" . "vt200") ("vt400" . "vt200") ("vt420" . "vt200"))] 1] "Alist of terminal type aliases.\nEntries are of the form (TYPE . ALIAS), where both elements are strings.\nThis means to treat a terminal of type TYPE as if it were of type ALIAS." (alist :key-type (string :tag "Terminal") :value-type (string :tag "Alias")) :version "25.1"] 10) #@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 (#$ . 1547)) (byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315\316\317\304\301\320\321&\210\306\322\310\311\323DD\324\314\325\316\326\304\301\320\327&\210\306\330\310\311\331DD\332\314\333\316\334\335\336\304\301\320\337& \207" [custom-declare-group font-selection nil "Influencing face font selection." :group faces custom-declare-variable face-font-selection-order funcall function #[0 "\300\207" [(:width :height :weight :slant)] 1] "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 #[514 "\300\"\210\301!\207" [set-default internal-set-font-selection-order] 5 "\n\n(fn SYMBOL VALUE)"] face-font-family-alternatives #[0 "\300\301\302\"\207" [mapcar #[257 "\300\301\"\207" [mapcar purecopy] 4 "\n\n(fn ARG)"] (("Monospace" "courier" "fixed") ("Monospace Serif" "Courier 10 Pitch" "Consolas" "Courier Std" "FreeMono" "Nimbus Mono L" "courier" "fixed") ("courier" "CMU Typewriter Text" "fixed") ("Sans Serif" "helv" "helvetica" "arial" "fixed") ("helv" "helvetica" "arial" "fixed"))] 3] "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)) #[514 "\300\"\210\301!\207" [set-default internal-set-alternative-font-family-alist] 5 "\n\n(fn SYMBOL VALUE)"] face-font-registry-alternatives #[0 "\300\301\302\303!\203\f \304\202 \305\"\207" [mapcar #[257 "\300\301\"\207" [mapcar purecopy] 4 "\n\n(fn ARG)"] 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"))] 4] "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" #[514 "\300\"\210\301!\207" [set-default internal-set-alternative-font-registry-alist] 5 "\n\n(fn SYMBOL VALUE)"]] 14) #@37 Return a list of all defined faces. (defalias 'face-list #[0 "\301\302\"\207" [face-new-frame-defaults mapcar car] 3 (#$ . 4692)]) #@193 Define a new face with name FACE, a symbol. Do not call this directly from Lisp code; use `defface' instead. If FACE is already known as a face, leave it unmodified. Return FACE. (fn FACE) (defalias 'make-face #[257 "\300!\204) \301 \211\203 \211@\302\"\210A\266\202\202 \210\303\304!\203% \304!\210\305!\210\207" [facep frame-list internal-make-lisp-face fboundp facemenu-add-new-face make-face-x-resource-internal] 6 (#$ . 4831) (byte-code "\300\301\302\211\303\304%C\207" [read-from-minibuffer "Make face: " nil t face-name-history] 6)]) #@118 Define a new, empty face with name FACE. Do not call this directly from Lisp code; use `defface' instead. (fn FACE) (defalias 'make-empty-face #[257 "\300!\207" [make-face] 3 (#$ . 5390) (byte-code "\300\301\302\211\303\304%C\207" [read-from-minibuffer "Make empty face: " nil t face-name-history] 6)]) #@832 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. (fn OLD-FACE NEW-FACE &optional FRAME NEW-FRAME) (defalias 'copy-face #[1026 "\301\2044 \211\203 \302\303\"\210\304!\210\305 \211\203* \211@\306#\210A\266\202\202 \210\306\301#\210\202? \304!\210\307$\210)\207" [inhibit-quit t error "Copying face %s from all frames to one frame" make-empty-face frame-list copy-face internal-copy-lisp-face] 10 (#$ . 5702)]) #@107 Return non-nil if FACE is a face name; nil otherwise. A face name can be a string or a symbol. (fn FACE) (defalias 'facep #[257 "\300!\207" [internal-lisp-face-p] 3 (#$ . 6870)]) #@72 Signal an error if FACE doesn't name a face. Value is FACE. (fn FACE) (defalias 'check-face #[257 "\300!\204 \301\302\"\210\207" [facep error "Not a face: %s"] 4 (#$ . 7057)]) #@244 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. (fn FACE &optional FRAME) (defalias 'face-id #[513 "\300!\210\301N\206 \302\303N!\207" [check-face face face-id face-alias] 5 (#$ . 7244)]) #@351 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. (fn FACE1 FACE2 &optional FRAME) (defalias 'face-equal #[770 "\300#\207" [internal-lisp-face-equal-p] 7 (#$ . 7612)]) #@293 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. (fn FACE &optional FRAME) (defalias 'face-differs-from-default-p #[513 "\301\302\303\304\"\"\305\2035 \211\2045 \211A\262\242\306\307$\211\310=\2040 \311D\"\2030 \262\266\202 \207" [face-attribute-name-alist delq :inherit mapcar car nil face-attribute t unspecified display-supports-face-attributes-p] 10 (#$ . 8057)]) #@272 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. (fn FACE &optional FRAME) (defalias 'face-nontrivial-p #[513 "\300\"?\207" [internal-lisp-face-empty-p] 5 (#$ . 8665)]) #@196 True if FACE-OR-LIST is a list of faces. Return nil if FACE-OR-LIST is a non-nil atom, or a cons cell whose car is either `foreground-color', `background-color', or a keyword. (fn FACE-OR-LIST) (defalias 'face-list-p #[257 "\211<\205 \211@\300>?\205 \301@!?\207" [(foreground-color background-color) keywordp] 3 (#$ . 9039)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable face-x-resources funcall function #[0 "\300\301\302\"\207" [mapcar #[257 "\211@\300A@!\300AA!BB\207" [purecopy] 5 "\n\n(fn 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")) (:distant-foreground (".attributeDistantForeground" . "Face.AttributeDistantForeground")) (: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")) (:extend (".attributeExtend" . "Face.AttributeExtend")) (:stipple (".attributeStipple" . "Face.AttributeStipple") (".attributeBackgroundPixmap" . "Face.AttributeBackgroundPixmap")) (:bold (".attributeBold" . "Face.AttributeBold")) (:italic (".attributeItalic" . "Face.AttributeItalic")) (:font (".attributeFont" . "Face.AttributeFont")) (:inherit (".attributeInherit" . "Face.AttributeInherit")))] 3] "List of X resources and classes for face attributes.\nEach element has the form (ATTRIBUTE ENTRY1 ENTRY2...) where ATTRIBUTE is\nthe name of a face attribute, and each ENTRY is a cons of the form\n(RESOURCE . CLASS) with RESOURCE being the resource and CLASS being the\nX resource class for the attribute." :type (repeat (cons symbol (repeat (cons string string)))) :group faces] 8) #@273 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. (fn FACE ATTRIBUTE RESOURCE CLASS FRAME) (defalias 'set-face-attribute-from-resource #[1285 "\300!\301P#\211\203* \3021 \303\227$0\202) \210\304\305 %\210\207" [face-name internal-face-x-get-resource (error) internal-set-lisp-face-attribute-from-resource message "Face %s, frame %s: invalid attribute %s %s from X resource"] 13 (#$ . 11257)]) #@69 Set attributes of FACE from X resources for FRAME. (fn FACE FRAME) (defalias 'set-face-attributes-from-resources #[514 "\301!\302>\2057 \211\2055 \211@\211@A\211\203, \211@\303@A\n%\210A\266\202\202 \266A\266\202\202 \262\207" [face-x-resources framep (x w32) set-face-attribute-from-resource] 13 (#$ . 11854)]) #@198 Fill frame-local FACE on FRAME from X resources. FRAME nil or not specified means do it for all frames. If `inhibit-x-resources' is non-nil, this function does nothing. (fn FACE &optional FRAME) (defalias 'make-face-x-resource-internal #[513 "?\2051 \211\204 \301 \202 \211C\211\205/ \211@\302=\203# \303\304\"\204( \305\"\210A\266\202\202 \262\207" [inhibit-x-resources frame-list default frame-parameter reverse set-face-attributes-from-resources] 7 (#$ . 12189)]) #@42 Return the name of face FACE. (fn FACE) (defalias 'face-name #[257 "\300\301!!\207" [symbol-name check-face] 4 (#$ . 12674)]) #@292 Return an alist stating the attributes of FACE. Each element of the result has the form (ATTR-NAME . ATTR-VALUE). If FRAME is omitted or nil the value describes the default attributes, but if you specify FRAME, the value describes the attributes of FACE on FRAME. (fn FACE &optional FRAME) (defalias 'face-all-attributes #[513 "\301\302\303\304\305\306\"\307\"\310\311%\"\207" [face-attribute-name-alist mapcar make-byte-code 257 "\211@\211\302\300\301\206 \303#B\207" vconcat vector [face-attribute t] 7 "\n\n(fn PAIR)"] 10 (#$ . 12809)]) #@998 Return the value of FACE's ATTRIBUTE on FRAME. 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. If INHERIT is nil, only attributes directly defined by FACE are considered, so the return value may be `unspecified', or a relative value. If INHERIT is non-nil, FACE's definition of ATTRIBUTE is merged with the faces specified by its `:inherit' attribute; however the return value may still be `unspecified' or relative. If INHERIT is a face or a list of faces, then the result is further merged with that face (or faces), until it becomes specified and absolute. To ensure that the return value is always specified and absolute, use a value of `default' for INHERIT; this will resolve any unspecified or relative values by merging with the `default' face (which is always completely specified). (fn FACE ATTRIBUTE &optional FRAME INHERIT) (defalias 'face-attribute #[1026 "\300#\2037 \301\"\2037 \302\303#\211\2036 \211\304=\2046 \30511 \306$\211\2620\2025 \210\2026 \210\210\203Q \307=\204Q \301\"\203Q \306$\262\211\207" [internal-get-lisp-face-attribute face-attribute-relative-p face-attribute :inherit unspecified (error) face-attribute-merged-with t] 11 (#$ . 13364)]) #@204 Merges ATTRIBUTE, initially VALUE, with faces from FACES until absolute. FACES may be either a single face or a list of faces. [This is an internal function.] (fn ATTRIBUTE VALUE FACES &optional FRAME) (defalias 'face-attribute-merged-with #[1027 "\300\"\204 \207\204 \207:\203&