emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3f19a23c1f: Fix doc of `gui-get-selection' as to what is really v


From: Po Lu
Subject: master 3f19a23c1f: Fix doc of `gui-get-selection' as to what is really valid as `data'
Date: Mon, 28 Mar 2022 08:35:27 -0400 (EDT)

branch: master
commit 3f19a23c1f60757c54a0ec7d84c625d83766ee08
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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.
---
 doc/lispref/frames.texi | 10 +++++-----
 lisp/select.el          |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 90924cf47b..ebf426fe50 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 90970f989a..7b9475a640 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]