?
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/facemenu.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/facemenu.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\301\302\303#\210\301\304\305#\210\306\307\310\311\312\313\314\315&\210\316\317\320\321\322\323\312\307&\210\316\324\325\326\322\327\312\307&\210\316\330\310\331\322\332\312\307\333\334& \207" [global-map define-key [C-down-mouse-2] facemenu-menu "\357" facemenu-keymap custom-declare-group facemenu nil "Create a face menu for interactively adding fonts to text." :group faces :prefix "facemenu-" custom-declare-variable facemenu-keybindings (mapcar 'purecopy '((default . "d") (bold . "b") (italic . "i") (bold-italic . "l") (underline . "u"))) "Alist of interesting faces and keybindings.\nEach element is itself a list: the car is the name of the face,\nthe next element is the key to use as a keyboard equivalent of the menu item;\nthe binding is made in `facemenu-keymap'.\n\nThe faces specifically mentioned in this list are put at the top of\nthe menu, in the order specified. All other faces which are defined\nin `facemenu-listed-faces' are listed after them, but get no\nkeyboard equivalents.\n\nIf you change this variable after loading facemenu.el, you will need to call\n`facemenu-update' to make it take effect." :type (repeat (cons face string)) facemenu-new-faces-at-end t "Where in the menu to insert newly-created faces.\nThis should be nil to put them at the top of the menu, or t to put them\njust before \"Other\" at the end." boolean facemenu-listed-faces "List of faces to include in the Face menu.\nEach element should be a symbol, the name of a face.\nThe \"basic \" faces in `facemenu-keybindings' are automatically\nadded to the Face menu, and need not be in this list.\n\nThis value takes effect when you load facemenu.el. If the\nlist includes symbols which are not defined as faces, they\nare ignored; however, subsequently defining or creating\nthose faces adds them to the menu then. You can call\n`facemenu-update' to recalculate the menu contents, such as\nif you change the value of this variable,\n\nIf this variable is t, all faces that you apply to text\nusing the face menu commands (even by name), and all faces\nthat you define or create, are added to the menu. You may\nfind it useful to set this variable to t temporarily while\nyou define some faces, so that they will be added. However,\nif the value is no longer t and you call `facemenu-update',\nit will remove any faces not explicitly in the list." (choice (const :tag "List all faces" t) (const :tag "None" nil) (repeat symbol)) :version "22.1"] 10) #@24 Menu keymap for faces. (defvar facemenu-face-menu (byte-code "\301\302!\303\304\305\306!\307B#\210)\207" [map make-sparse-keymap "Face" define-key "o" purecopy "Other..." facemenu-set-face] 5) (#$ . 3022)) (byte-code "\301\300\"\210\302\300\303\304#\207" [facemenu-face-menu defalias put menu-enable (facemenu-enable-faces-p)] 4) #@36 Menu keymap for foreground colors. (defvar facemenu-foreground-menu (byte-code "\301\302!\303\304\305\306!\307B#\210)\207" [map make-sparse-keymap "Foreground Color" define-key "o" purecopy "Other..." facemenu-set-foreground] 5) (#$ . 3362)) (byte-code "\301\300\"\210\302\300\303\304#\207" [facemenu-foreground-menu defalias put menu-enable (facemenu-enable-faces-p)] 4) #@36 Menu keymap for background colors. (defvar facemenu-background-menu (byte-code "\301\302!\303\304\305\306!\307B#\210)\207" [map make-sparse-keymap "Background Color" define-key "o" purecopy "Other..." facemenu-set-background] 5) (#$ . 3744)) (byte-code "\301\300\"\210\302\300\303\304#\207" [facemenu-background-menu defalias put menu-enable (facemenu-enable-faces-p)] 4) (defalias 'facemenu-enable-faces-p #[nil "\205 ?\206\n \n\207" [font-lock-mode font-lock-defaults facemenu-add-face-function] 1]) #@43 Menu keymap for non-face text-properties. (defvar facemenu-special-menu (byte-code "\301\302!\303\304\305\306!\307B#\210\303\310\305\311!\312B#\210\303\313\305\314!\315B#\210\303\316\305\317!\320B#\210)\207" [map make-sparse-keymap "Special" define-key [115] purecopy "Remove Special" facemenu-remove-special [116] "Intangible" facemenu-set-intangible [118] "Invisible" facemenu-set-invisible [114] "Read-Only" facemenu-set-read-only] 5) (#$ . 4259)) (defalias 'facemenu-special-menu facemenu-special-menu) #@42 Submenu for text justification commands. (defvar facemenu-justification-menu (byte-code "\301\302!\303\304\305\306!\307B#\210\303\310\305\311!\312B#\210\303\313\305\314!\315B#\210\303\316\305\317!\320B#\210\303\321\305\322!\323B#\210)\207" [map make-sparse-keymap "Justification" define-key [99] purecopy "Center" set-justification-center [98] "Full" set-justification-full [114] "Right" set-justification-right [108] "Left" set-justification-left [117] "Unfilled" set-justification-none] 5) (#$ . 4778)) (defalias 'facemenu-justification-menu facemenu-justification-menu) #@35 Submenu for indentation commands. (defvar facemenu-indentation-menu (byte-code "\301\302!\303\304\305\306!\307B#\210\303\310\305\311!\312B#\210\303\313\305\314!\315B#\210\303\316\305\317!\320B#\210)\207" [map make-sparse-keymap "Indentation" define-key [decrease-right-margin] purecopy "Indent Right Less" decrease-right-margin [increase-right-margin] "Indent Right More" increase-right-margin [decrease-left-margin] "Indent Less" decrease-left-margin [increase-left-margin] "Indent More" increase-left-margin] 5) (#$ . 5364)) (defalias 'facemenu-indentation-menu facemenu-indentation-menu) #@33 Facemenu top-level menu keymap. (defvar facemenu-menu nil (#$ . 5967)) (byte-code "\302\303!\211\304 \305\306\307!\310B#\210\304 \311\306\312!\313B#\210\304 \314\306\315!\316B#\210\304 \317\320\306\321!\322\323\324\257#\210\304 \325\320\306\326!\327\323\324\257#\210\304 \330\306\331!C#\210)\304 \332\306\333!\334B#\210\304 \335\306\336!\337B#\210\304 \340\306\331!C#\210\304 \341\306\342!\343B#\210\304 \344\306\345!\346B#\210\304 \347\306\350!\351B#\210\304 \352\306\353!\354B#\210)\355\300\"\207" [facemenu-menu map make-sparse-keymap "Text Properties" define-key [dc] purecopy "Display Colors" list-colors-display [df] "Display Faces" list-faces-display [dp] "Describe Properties" describe-text-properties [ra] menu-item "Remove Text Properties" facemenu-remove-all :enable mark-active [rm] "Remove Face Properties" facemenu-remove-face-props [s1] "--" [in] "Indentation" facemenu-indentation-menu [ju] "Justification" facemenu-justification-menu [s2] [sp] "Special Properties" facemenu-special-menu [bg] "Background Color" facemenu-background-menu [fg] "Foreground Color" facemenu-foreground-menu [fc] "Face" facemenu-face-menu defalias] 9) #@137 Keymap for face-changing commands. `Facemenu-update' fills in the keymap according to the bindings requested in `facemenu-keybindings'. (defvar facemenu-keymap (byte-code "\301\302!\303\304\305\306!\307B#\210\303\310\311#\210)\207" [map make-sparse-keymap "Set face" define-key "o" purecopy "Other..." facemenu-set-face "\357" font-lock-fontify-block] 5) (#$ . 7127)) (byte-code "\301\300\"\210\302\303\304\305\306\307\310\311&\210\302\312\304\313\306\314\310\311&\210\302\315\304\316\306\317\310\311&\207" [facemenu-keymap defalias custom-declare-variable facemenu-add-face-function nil "Function called at beginning of text to change or nil.\nThis function is passed the FACE to set and END of text to change, and must\nreturn a string which is inserted. It may set `facemenu-end-add-face'." :type (choice (const :tag "None" nil) function) :group facemenu facemenu-end-add-face "String to insert or function called at end of text to change or nil.\nThis function is passed the FACE to set, and must return a string which is\ninserted." (choice (const :tag "None" nil) string function) facemenu-remove-face-function "When non-nil, this is a function called to remove faces.\nThis function is passed the START and END of text to change.\nMay also be t meaning to use `facemenu-add-face-function'." (choice (const :tag "None" nil) (const :tag "Use add-face" t) function)] 8) #@99 Alist of colors, used for completion. If this is nil, then the value of (defined-colors) is used. (defvar facemenu-color-alist nil (#$ . 8516)) #@138 Add or update the "Face" menu in the menu bar. You can call this to update things if you change any of the menu configuration variables. (defalias 'facemenu-update #[nil "\301\302\303!\"\207" [facemenu-keybindings facemenu-iterate facemenu-add-new-face facemenu-complete-face-list] 4 (#$ . 8667) nil]) #@802 Apply FACE to the region or next character typed. If the region is active (normally true except in Transient Mark mode) and nonempty, and there is no prefix argument, this command applies FACE to the region. Otherwise, it applies FACE to the faces to use for the next character inserted. (Moving point or switching buffers before typing a character to insert cancels the specification.) If FACE is `default', to "apply" it means clearing the list of faces to be used. For any other value of FACE, to "apply" it means putting FACE at the front of the list of faces to be used, and removing any faces further along in the list that would be completely overridden by preceding faces (including FACE). This command can also add FACE to the menu of faces, if `facemenu-listed-faces' says to do that. (defalias 'facemenu-set-face #[(face &optional start end) "\303!\210\304 \n#\207" [face start end facemenu-add-new-face facemenu-add-face] 4 (#$ . 8977) (list (progn (barf-if-buffer-read-only) (read-face-name "Use face")) (if (and mark-active (not current-prefix-arg)) (region-beginning)) (if (and mark-active (not current-prefix-arg)) (region-end)))]) #@444 Set the foreground COLOR of the region or next character typed. This command reads the color in the minibuffer. If the region is active (normally true except in Transient Mark mode) and there is no prefix argument, this command sets the region to the requested face. Otherwise, this command specifies the face for the next character inserted. Moving point or switching buffers before typing a character to insert cancels the specification. (defalias 'facemenu-set-foreground #[(color &optional start end) "\303\304\305\" \n#\207" [color start end facemenu-set-face-from-menu facemenu-add-new-color facemenu-foreground-menu] 4 (#$ . 10140) (list (progn (barf-if-buffer-read-only) (read-color "Foreground color: ")) (if (and mark-active (not current-prefix-arg)) (region-beginning)) (if (and mark-active (not current-prefix-arg)) (region-end)))]) #@444 Set the background COLOR of the region or next character typed. This command reads the color in the minibuffer. If the region is active (normally true except in Transient Mark mode) and there is no prefix argument, this command sets the region to the requested face. Otherwise, this command specifies the face for the next character inserted. Moving point or switching buffers before typing a character to insert cancels the specification. (defalias 'facemenu-set-background #[(color &optional start end) "\303\304\305\" \n#\207" [color start end facemenu-set-face-from-menu facemenu-add-new-color facemenu-background-menu] 4 (#$ . 10996) (list (progn (barf-if-buffer-read-only) (read-color "Background color: ")) (if (and mark-active (not current-prefix-arg)) (region-beginning)) (if (and mark-active (not current-prefix-arg)) (region-end)))]) #@718 Set the FACE of the region or next character typed. This function is designed to be called from a menu; FACE is determined using the event type of the menu entry. If FACE is a symbol whose name starts with "fg:" or "bg:", then this functions sets the foreground or background to the color specified by the rest of the symbol's name. Any other symbol is considered the name of a face. If the region is active (normally true except in Transient Mark mode) and there is no prefix argument, this command sets the region to the requested face. Otherwise, this command specifies the face for the next character inserted. Moving point or switching buffers before typing a character to insert cancels the specification. (defalias 'facemenu-set-face-from-menu #[(face start end) "\304 \210\305\306!\307\310 \"\203&