aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/select.el22
1 files changed, 13 insertions, 9 deletions
diff --git a/lisp/select.el b/lisp/select.el
index 03d7679c262..0a60b99d1e1 100644
--- a/lisp/select.el
+++ b/lisp/select.el
@@ -39,16 +39,20 @@ and the argument DATA-TYPE (default `STRING') says how to convert the data."
39 "Make an X Windows selection of type TYPE and value DATA. 39 "Make an X Windows selection of type TYPE and value DATA.
40The argument TYPE (default `PRIMARY') says which selection, 40The argument TYPE (default `PRIMARY') says which selection,
41and DATA specifies the contents. DATA may be a string, 41and DATA specifies the contents. DATA may be a string,
42a symbol, an integer (or a cons of two integers or list of two integers), 42a symbol, an integer (or a cons of two integers or list of two integers).
43or a cons of two markers pointing to the same buffer. 43
44In the last case, the selection is considered to be the text 44The selection may also be a cons of two markers pointing to the same buffer,
45between the markers. 45or an overlay. In these cases, the selection is considered to be the text
46The data may also be a vector of valid non-vector selection values." 46between the markers *at whatever time the selection is examined*.
47Thus, editing done in the buffer after you specify the selection
48can alter the effective value of the selection.
49
50The data may also be a vector of valid non-vector selection values.
51
52Interactively, the text of the region is used as the selection value."
47 (interactive (if (not current-prefix-arg) 53 (interactive (if (not current-prefix-arg)
48 (list (read-string "Store text for pasting: ")) 54 (list 'PRIMARY (read-string "Set text for pasting: "))
49 (list (cons ;; these need not be ordered. 55 (list 'PRIMARY (substring (region-beginning) (region-end)))))
50 (copy-marker (point-marker))
51 (copy-marker (mark-marker))))))
52 ;; This is for temporary compatibility with pre-release Emacs 19. 56 ;; This is for temporary compatibility with pre-release Emacs 19.
53 (if (stringp type) 57 (if (stringp type)
54 (setq type (intern type))) 58 (setq type (intern type)))