From: Po Lu Date: Mon, 28 Mar 2022 12:34:03 +0000 (+0800) Subject: Fix doc of `gui-get-selection' as to what is really valid as `data' X-Git-Tag: emacs-29.0.90~1931^2~881 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3f19a23c1f60757c54a0ec7d84c625d83766ee08;p=emacs.git 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. --- diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 90924cf47b5..ebf426fe501 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi @@ -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 diff --git a/lisp/select.el b/lisp/select.el index 90970f989a8..7b9475a6402 100644 --- a/lisp/select.el +++ b/lisp/select.el @@ -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