%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/button.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-face 'button '((t :inherit link)) "Default face used for buttons." :group 'basic-faces) #@25 Keymap used by buttons. (defvar button-map (byte-code "\300 \301\302\303#\210\301\304\303#\210\301\305\303#\210\301\306\303#\210\211\207" [make-sparse-keymap define-key [(control 109)] push-button [mouse-2] [mode-line mouse-2] [header-line mouse-2]] 5) (#$ . 512)) #@114 Keymap useful for buffers containing buttons. Mode-specific keymaps may want to use this as their parent keymap. (defvar button-buffer-map (byte-code "\300 \301\302\303#\210\301\304\305#\210\301\306\305#\210\211\207" [make-sparse-keymap define-key [9] forward-button " " backward-button [backtab]] 5) (#$ . 788)) (byte-code "\301\302\303\304#\210\301\302\305\306#\210\301\302\307#\210\301\302\310\304#\210\301\302\311\312#\210\301\302\313\314\315!#\210\301\302\316\317#\210\301\302\320\317#\210\301\304\321\302#\207" [button-map put default-button face button mouse-face highlight keymap type action ignore help-echo purecopy "mouse-2, RET: Push this button" evaporate t rear-nonsticky button-category-symbol] 5) #@150 Return the symbol used by button-type TYPE to store properties. Buttons inherit them by setting their `category' property to that symbol. (fn TYPE) (defalias 'button-category-symbol #[257 "\211\300N\206\n \301\302\"\207" [button-category-symbol error "Unknown button type `%s'"] 4 (#$ . 1513)]) (put 'button-category-symbol 'byte-optimizer 'byte-compile-inline-expand) #@593 Define a `button type' called NAME (a symbol). The remaining arguments form a plist of PROPERTY VALUE pairs, specifying properties to use as defaults for buttons with this type (a button's type may be set by giving it a `type' property when creating the button, using the :type keyword argument). In addition, the keyword argument :supertype may be used to specify a button-type from which NAME inherits its default property values (however, the inheritance happens only when NAME is defined; subsequent changes to a supertype are not reflected in its subtypes). (fn NAME &rest PROPERTIES) (defalias 'define-button-type #[385 "\300\301!\302P!\303\304\"\206 \303\305\"\206 \306\211\307N\206 \310\311\"\262\312\307#\210\313!\211\203B \312\211A\262\242\211A\262\242#\210\202+ \210\312\314#\210\203m \211A\262\242\211\305=\203] \304\262\312\211A\262\242#\266\202J \304N\204y \312\304\306#\210\207" [make-symbol symbol-name "-button" plist-get supertype :supertype button button-category-symbol error "Unknown button type `%s'" put symbol-plist type] 10 (#$ . 1891)]) #@70 Set the button-type TYPE's PROP property to VAL. (fn TYPE PROP VAL) (defalias 'button-type-put #[771 "\300\211\301N\206\f \302\303\"\262#\207" [put button-category-symbol error "Unknown button type `%s'"] 8 (#$ . 2994)]) #@66 Get the property of button-type TYPE named PROP. (fn TYPE PROP) (defalias 'button-type-get #[514 "\211\300N\206 \301\302\"\262N\207" [button-category-symbol error "Unknown button type `%s'"] 6 (#$ . 3227)]) #@84 Return non-nil if button-type TYPE is a subtype of SUPERTYPE. (fn TYPE SUPERTYPE) (defalias 'button-type-subtype-p #[514 "=\206 \205 \300\301\302\"\"\207" [button-type-subtype-p button-type-get supertype] 6 (#$ . 3446)]) #@122 Return the position at which BUTTON starts. This function only works when BUTTON is in the current buffer. (fn BUTTON) (defalias 'button-start #[257 "\300!\203\n \301!\207\302T\303\"\206 e\207" [overlayp overlay-start previous-single-property-change button] 4 (#$ . 3682)]) #@120 Return the position at which BUTTON ends. This function only works when BUTTON is in the current buffer. (fn BUTTON) (defalias 'button-end #[257 "\300!\203\n \301!\207\302\303\"\206 d\207" [overlayp overlay-end next-single-property-change button] 4 (#$ . 3969)]) #@129 Get the property of button BUTTON named PROP. This function only works when BUTTON is in the current buffer. (fn BUTTON PROP) (defalias 'button-get #[514 "\300!\203 \301\"\207\302!\203 \303A\304!#\207\305!\203( \303\306!#\207\303\"\207" [overlayp overlay-get button--area-button-p get-text-property button--area-button-string markerp marker-buffer] 7 (#$ . 4245)]) #@122 Set BUTTON's PROP property to VAL. This function only works when BUTTON is in the current buffer. (fn BUTTON PROP VAL) (defalias 'button-put #[771 "\300\267\202 \301\262\211\211\302N\206 \303\304\"\262\262\202 \303\305!\210\306!\203+ \307#\207\310!\203@ \311!\262\312\313G%\207\312\314T\315\"\206J e\316\315\"\206R d$\207" [#s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (type 6 :type 6 category 27)) category button-category-symbol error "Unknown button type `%s'" "Button `category' property may not be set directly" overlayp overlay-put button--area-button-p button--area-button-string put-text-property 0 previous-single-property-change button next-single-property-change] 9 (#$ . 4634)]) #@671 Call BUTTON's `action' property. If USE-MOUSE-ACTION is non-nil, invoke the button's `mouse-action' property instead of `action'; if the button has no `mouse-action', the value of `action' is used instead. The action can either be a marker or a function. If it's a marker then goto it. Otherwise if it is a function then it is called with BUTTON as only argument. BUTTON is either an overlay, a buffer position, or (for buttons in the mode-line or header-line) a string. If BUTTON has a `button-data' value, call the function with this value instead of BUTTON. This function only works when BUTTON is in the current buffer. (fn BUTTON &optional USE-MOUSE-ACTION) (defalias 'button-activate #[513 "\211\203 \300\301\"\206 \300\302\"\300\303\"\304!\203<