aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/select.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/select.el b/lisp/select.el
index 8fb51428272..b953743fd8b 100644
--- a/lisp/select.el
+++ b/lisp/select.el
@@ -29,8 +29,9 @@
29(defun x-get-selection (&optional type data-type) 29(defun x-get-selection (&optional type data-type)
30 "Return the value of an X Windows selection. 30 "Return the value of an X Windows selection.
31The argument TYPE (default `PRIMARY') says which selection, 31The argument TYPE (default `PRIMARY') says which selection,
32and the argument DATA-TYPE (default `STRING') says how to convert the data." 32and the argument DATA-TYPE (default `COMPOUND_TEXT') says
33 (x-get-selection-internal (or type 'PRIMARY) (or data-type 'STRING))) 33how to convert the data."
34 (x-get-selection-internal (or type 'PRIMARY) (or data-type 'COMPOUND_TEXT)))
34 35
35(defun x-get-clipboard () 36(defun x-get-clipboard ()
36 "Return text pasted to the clipboard." 37 "Return text pasted to the clipboard."
@@ -287,6 +288,7 @@ Cut buffers are considered obsolete; you should use selections instead."
287 288
288(setq selection-converter-alist 289(setq selection-converter-alist
289 '((TEXT . xselect-convert-to-string) 290 '((TEXT . xselect-convert-to-string)
291 (COMPOUND_TEXT . xselect-convert-to-string)
290 (STRING . xselect-convert-to-string) 292 (STRING . xselect-convert-to-string)
291 (TARGETS . xselect-convert-to-targets) 293 (TARGETS . xselect-convert-to-targets)
292 (LENGTH . xselect-convert-to-length) 294 (LENGTH . xselect-convert-to-length)