diff options
author | Eli Zaretskii <eliz@gnu.org> | 2009-07-25 09:31:05 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2009-07-25 09:31:05 +0000 |
commit | 3077d1f623039874558f0da4c8850990484504fb (patch) | |
tree | 414e12a500ff32bbea37422e3a28d715032a647f /lisp/select.el | |
parent | beb0b7f93c2fbeb2fae08d7302686febccb3d582 (diff) | |
download | emacs-3077d1f623039874558f0da4c8850990484504fb.tar.gz |
Fix Bug#3888:
w32-vars.el (x-select-enable-clipboard): Doc fix.
term/pc-win.el (x-display-name, x-colors)
(x-select-enable-clipboard, x-select-text): Doc fix.
term/common-win.el (x-display-name, x-colors): Doc fix.
term/ns-win.el (x-select-text, x-setup-function-keys, x-colors)
(xw-defined-colors): Doc fix.
w32-fns.el (x-select-text, x-setup-function-keys)
(x-get-selection, x-set-selection): Doc fix.
term/x-win.el (x-select-text, x-setup-function-keys)
(x-select-enable-clipboard, xw-defined-colors): Doc fix.
select.el (x-set-selection): Doc fix.
Diffstat (limited to 'lisp/select.el')
-rw-r--r-- | lisp/select.el | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lisp/select.el b/lisp/select.el index a65f2908b24..52c31a8ca20 100644 --- a/lisp/select.el +++ b/lisp/select.el @@ -116,28 +116,28 @@ in `selection-converter-alist', which see." (defun x-set-selection (type data) "Make an X Windows selection of type TYPE and value DATA. -TYPE is a symbol specifying the selection type. This is normally -one of `PRIMARY', `SECONDARY', or `CLIPBOARD'; or nil, which is -equivalent to `PRIMARY'. (It can also be a string, which stands -for the symbol with that name, but this usage is obsolete.) - -DATA is a selection value. It should be one of the following: - - A vector of non-vector selection values. - - A string. - - An integer. - - A cons cell of two markers pointing to the same buffer - (the data consists of the text between the markers). - - An overlay (the data consists of the text within the overlay). - - A buffer (the data consists of the text in the region). -For the last three cases, the actual selection data is computed -only when the selection is requested. Thus, it includes any -changes made to the buffer after `x-set-selection' is called. +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 ." +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." (interactive (if (not current-prefix-arg) (list 'PRIMARY (read-string "Set text for pasting: ")) (list 'PRIMARY (buffer-substring (region-beginning) (region-end))))) |