Fix doc of gui-get-selection' as to what is really valid as data'

* doc/lispref/frames.texi (Window System Selections):
* lisp/select.el (gui-set-selection): Don't say `data' can be a
cons or list of two integers, since that's not supported.
This commit is contained in:
Po Lu 2022-03-28 20:34:03 +08:00
parent fbbb9148cc
commit 3f19a23c1f
2 changed files with 9 additions and 9 deletions

View file

@ -3918,11 +3918,11 @@ upper-case names, in accord with X Window System conventions. If
@var{type} is @code{nil}, that stands for @code{PRIMARY}.
If @var{data} is @code{nil}, it means to clear out the selection.
Otherwise, @var{data} may be a string, a symbol, an integer (or a cons
of two integers or list of two integers), an overlay, or a cons of two
markers pointing to the same buffer. An overlay or a pair of markers
stands for text in the overlay or between the markers. The argument
@var{data} may also be a vector of valid non-vector selection values.
Otherwise, @var{data} may be a string, a symbol, an integer, an
overlay, or a cons of two markers pointing to the same buffer. An
overlay or a pair of markers stands for text in the overlay or between
the markers. The argument @var{data} may also be a vector of valid
non-vector selection values.
This function returns @var{data}.
@end deffn

View file

@ -350,10 +350,10 @@ the formats available in the clipboard if TYPE is `CLIPBOARD'."
(defun gui-set-selection (type data)
"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).
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, or
an integer.
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