?
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/select.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/select.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@1107 Coding system for communicating with other programs. For MS-Windows and MS-DOS: When sending or receiving text via selection and clipboard, the text is encoded or decoded by this coding system. The default value is the current system default encoding on 9x/Me, `utf-16le-dos' (Unicode) on NT/W2K/XP, and `iso-latin-1-dos' on MS-DOS. For X Windows: When sending text via selection and clipboard, if the target data-type matches with the type of this coding system, it is used for encoding the text. Otherwise (including the case that this variable is nil), a proper coding system is used as below: data-type coding system --------- ------------- UTF8_STRING utf-8 COMPOUND_TEXT compound-text-with-extensions STRING iso-latin-1 C_STRING no-conversion When receiving text, if this coding system is non-nil, it is used for decoding regardless of the data-type. If this is nil, a proper coding system is used according to the data-type as above. See also the documentation of the variable `x-select-request-type' how to control which data-type to request for receiving text. The default value is nil. (custom-declare-variable 'selection-coding-system nil '(#$ . 549) :type 'coding-system :group 'mule :version "23.1" :set #[(symbol value) "\302!\210 L\207" [value symbol set-selection-coding-system] 2]) #@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 (#$ . 1867)) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias x-selection x-get-selection nil make-obsolete "at least 19.34"] 4) #@529 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. (defalias 'x-get-selection #[(&optional type data-type) "\306\206 \307 \206 \310\"\311\211;\203m \312\313\314#\211\203m \f\206R \206R \315=\2030 \316\202R \317=\203: \320\202R \321=\203D \311\202R \310=\203N \322\202R \323\324\"\211\203^ \325\n\"\202a \326!\311\327\313G\314 %\210*\207" [type data-type coding data next-selection-coding-system selection-coding-system x-get-selection-internal PRIMARY STRING nil get-text-property 0 foreign-selection UTF8_STRING utf-8 COMPOUND_TEXT compound-text-with-extensions C_STRING iso-8859-1 error "Unknown selection data type: %S" decode-coding-string string-to-multibyte put-text-property] 7 (#$ . 2377)]) #@38 Return text pasted to the clipboard. (defalias 'x-get-clipboard #[nil "\300\301\302\"\207" [x-get-selection-internal CLIPBOARD STRING] 3 (#$ . 3580)]) #@1111 Make an X selection of type TYPE and value DATA. The argument TYPE (nil means `PRIMARY') says which selection, and DATA specifies the contents. TYPE must be a symbol. (It can also be a string, which stands for the symbol with that name, but this is considered obsolete.) DATA may be a string, a symbol, an integer (or a cons of two integers or list of two integers). The selection may also be a cons of two markers pointing to the same buffer, or an overlay. In these cases, the selection is considered to be the text between the markers *at whatever time the selection is examined*. Thus, editing done in the buffer after you specify the selection can alter the effective value of the selection. The data may also be a vector of valid non-vector selection values. The return value is DATA. Interactively, this command sets the primary selection. Without prefix argument, it reads the selection in the minibuffer. With prefix argument, it uses the text of the region as the selection value. Note that on MS-Windows, primary and secondary selections set by Emacs are not available to other programs. (defalias 'x-set-selection #[(type data) ";\203 \304!\305 !\204>