%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/select.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\312\313\314\315&\207" [custom-declare-variable selection-coding-system funcall function #[0 "\300\207" [nil] 1] "Coding system for communicating with other programs.\n\nFor MS-Windows and MS-DOS:\nWhen sending or receiving text via selection and clipboard, the text\nis encoded or decoded by this coding system. The default value is\nthe current system default encoding on 9x/Me, `utf-16le-dos'\n(Unicode) on NT/W2K/XP, and `iso-latin-1-dos' on MS-DOS.\n\nFor X Windows:\nWhen sending text via selection and clipboard, if the target\ndata-type matches this coding system according to the table\nbelow, it is used for encoding the text. Otherwise (including\nthe case that this variable is nil), a proper coding system is\nselected as below:\n\ndata-type coding system\n--------- -------------\nUTF8_STRING utf-8\nCOMPOUND_TEXT compound-text-with-extensions\nSTRING iso-latin-1\nC_STRING raw-text-unix\n\nWhen receiving text, if this coding system is non-nil, it is used\nfor decoding regardless of the data-type. If this is nil, a\nproper coding system is used according to the data-type as above.\n\nSee also the documentation of the variable `x-select-request-type' how\nto control which data-type to request for receiving text.\n\nThe default value is nil." :type coding-system :group mule :version "23.1" :set #[514 "\300!\210L\207" [set-selection-coding-system] 4 "\n\n(fn SYMBOL VALUE)"]] 12) #@317 Coding system for the next communication with other programs. Usually, `selection-coding-system' is used for communicating with other programs (X Windows clients or MS Windows programs). But, if this variable is set, it is used for the next communication only. After the communication, this variable is set to nil. (defvar next-selection-coding-system nil (#$ . 1871)) (byte-code "\300\301\302\303#\210\304\301\302\305#\210\306\307\310\303#\210\311\211\2034 \211@\307N\203- \310N\204- \312\310\307N#\210A\266\202\202 \210\313\307\310\314#\210\315\310\316\317\320DD\321\322\323\324\325\326\327& \210\306\330\331\303#\210\332\211\203t \211@\330N\203m \331N\204m \312\331\330N#\210A\266\202\202S \210\313\330\331\314#\210\315\331\316\317\333DD\334\322\323\324\325\326\314& \207" [defalias x-selection x-get-selection nil make-obsolete "at least 19.34" defvaralias x-select-enable-clipboard select-enable-clipboard (saved-value saved-variable-comment) put make-obsolete-variable "25.1" custom-declare-variable funcall function #[0 "\300\207" [t] 1] "Non-nil means cutting and pasting uses the clipboard.\nThis can be in addition to, but in preference to, the primary selection,\nif applicable (i.e. under X11)." :type boolean :group killing :version "24.1" x-select-enable-primary select-enable-primary (saved-value saved-variable-comment) #[0 "\300\207" [nil] 1] "Non-nil means cutting and pasting uses the primary selection.\nThe existence of a primary selection depends on the underlying GUI you use.\nE.g. it doesn't exist under MS-Windows."] 10) #@49 The value of the CLIPBOARD selection last seen. (defvar gui--last-selected-text-clipboard nil (#$ . 3436)) #@47 The value of the PRIMARY selection last seen. (defvar gui--last-selected-text-primary nil (#$ . 3549)) #@268 Select TEXT, a string, according to the window system. if `select-enable-clipboard' is non-nil, copy TEXT to the system's clipboard. If `select-enable-primary' is non-nil, put TEXT in the primary selection. MS-Windows does not have a "primary" selection. (fn TEXT) (defalias 'gui-select-text #[257 "\203 \305\306\"\210\211\n\205 \211\305\307\"\210\211\211\207" [select-enable-primary gui--last-selected-text-primary select-enable-clipboard saved-region-selection gui--last-selected-text-clipboard gui-set-selection PRIMARY CLIPBOARD] 4 (#$ . 3659)]) (byte-code "\300\301\302\303#\210\304\301\302\305#\210\306\307\310\311\312DD\313\314\315\316\317&\207" [defalias x-select-text gui-select-text nil make-obsolete "25.1" custom-declare-variable x-select-request-type funcall function #[0 "\300\207" [nil] 1] "Data type request for X selection.\nThe value is one of the following data types, a list of them, or nil:\n `COMPOUND_TEXT', `UTF8_STRING', `STRING', `TEXT'\n\nIf the value is one of the above symbols, try only the specified type.\n\nIf the value is a list of them, try each of them in the specified\norder until succeed.\n\nThe value nil is the same as the list (UTF8_STRING COMPOUND_TEXT STRING)." :type (choice (const :tag "Default" nil) (const COMPOUND_TEXT) (const UTF8_STRING) (const STRING) (const TEXT) (set :tag "List of values" (const COMPOUND_TEXT) (const UTF8_STRING) (const STRING) (const TEXT))) :group killing] 8) #@240 Get a selection value of type TYPE. Call `gui-get-selection' with an appropriate DATA-TYPE argument decided by `x-select-request-type'. The return value is already decoded. If `gui-get-selection' signals an error, return nil. (fn TYPE) (defalias 'gui--selection-value-internal #[257 "\302=\203 \206 \303\202 \304\305\3061; :\2030 \2057 \211?\2057 \307@\"\262A\262\202 \307\"\211\2620\202A \310\311\"\262\210\211\203N \312\313G\314$\210\207" [window-system x-select-request-type x (UTF8_STRING COMPOUND_TEXT STRING) STRING nil (debug error) gui-get-selection message "gui-get-selection: %S" remove-text-properties 0 (foreign-selection nil)] 8 (#$ . 5113)]) (defalias 'gui-selection-value #[0 "\205 \305\306!\211\307\230\203 \310\262\211 \232?\205 \211\262\n\2058 \305\311!\211\307\230\203, \310\262\211\232?\2054 \211\262\310\206? \211\207" [select-enable-clipboard gui--last-selected-text-clipboard select-enable-primary gui--last-selected-text-primary next-selection-coding-system gui--selection-value-internal CLIPBOARD "" nil PRIMARY] 4]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias x-selection-value gui-selection-value nil make-obsolete "25.1"] 4) #@38 Return text pasted to the clipboard. (defalias 'x-get-clipboard #[0 "\300\301\302\"\207" [gui-backend-get-selection CLIPBOARD STRING] 3 (#$ . 6332)]) (make-obsolete 'x-get-clipboard 'gui-get-selection "25.1") #@62 Return the PRIMARY selection, or the best emulation thereof. (defalias 'gui-get-primary-selection #[0 "\300\301!\206 \302\303!\203 \304\305 !\306=\203 \303 \206 \307\310!\207" [gui--selection-value-internal PRIMARY fboundp w32-get-selection-value framep selected-frame w32 error "No selection is available"] 2 (#$ . 6547)]) (byte-code "\300\301\302\303#\210\304\301\302\305#\210\300\306\307\306\310\303#\311#\210\312\306\303\310\303\313%\210\300\314\307\314\315\303#\316#\210\312\314\303\315\303\317%\210\300\320\307\320\321\303#\322#\210\312\320\303\321\303\323%\210\300\324\307\324\325\303#\326#\210\312\324\303\325\303\327%\207" [defalias x-get-selection-value gui-get-primary-selection nil make-obsolete "25.1" gui-backend-get-selection cl-generic-define (_selection-symbol _target-type) "Return selected text.\nSELECTION-SYMBOL is typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.\n(Those are literal upper-case symbol names, since that's what X expects.)\nTARGET-TYPE is the type of data desired, typically `STRING'.\n\n(fn SELECTION-SYMBOL TARGET-TYPE)" cl-generic-define-method #[514 "\300\207" [nil] 3 "\n\n(fn SELECTION-SYMBOL TARGET-TYPE)"] gui-backend-set-selection (_selection _value) "Method to assert a selection of type SELECTION and value VALUE.\nSELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.\nIf VALUE is nil and we own the selection SELECTION, disown it instead.\nDisowning it means there is no such selection.\n(Those are literal upper-case symbol names, since that's what X expects.)\nVALUE is typically a string, or a cons of two markers, but may be\nanything that the functions on `selection-converter-alist' know about.\n\n(fn SELECTION VALUE)" #[514 "\300\207" [nil] 3 "\n\n(fn SELECTION VALUE)"] gui-backend-selection-owner-p (_selection) "Whether the current Emacs process owns the given X Selection.\nThe arg should be the name of the selection in question, typically one of\nthe symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.\n(Those are literal upper-case symbol names, since that's what X expects.)\n\n(fn SELECTION)" #[257 "\300\207" [nil] 2 "\n\n(fn SELECTION)"] gui-backend-selection-exists-p (_selection) "Whether there is an owner for the given X Selection.\nThe arg should be the name of the selection in question, typically one of\nthe symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.\n(Those are literal upper-case symbol names, since that's what X expects.)\n\n(fn SELECTION)" #[257 "\300\207" [nil] 2 "\n\n(fn SELECTION)"]] 6) #@776 Return the value of an X Windows selection. The argument TYPE (default `PRIMARY') says which selection, and the argument DATA-TYPE (default `STRING') says how to convert the data. TYPE may be any symbol (but nil stands for `PRIMARY'). However, only a few symbols are commonly used. They conventionally have all upper-case names. The most often used ones, in addition to `PRIMARY', are `SECONDARY' and `CLIPBOARD'. DATA-TYPE is usually `STRING', but can also be one of the symbols in `selection-converter-alist', which see. Window systems other than X usually support only a small subset of these symbols, in addition to `STRING'; MS-Windows supports `TARGETS', which reports the formats available in the clipboard if TYPE is `CLIPBOARD'. (fn &optional TYPE DATA-TYPE) (defalias 'gui-get-selection #[512 "\302\206 \303\206 \304\"\211;\203Y \305\306\307#\211\262\203Y \206>