Function: x-get-selection

x-get-selection is a function alias for gui-get-selection, defined in select.el.gz.

This function is obsolete since 25.1; use gui-get-selection instead.

Signature

(x-get-selection &optional TYPE DATA-TYPE)

Documentation

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.

Probably introduced at or before Emacs version 25.1.

Aliases

evil-get-selection x-get-selection (obsolete since 25.1)