diff options
| author | Karl Heuer | 1997-02-20 05:49:58 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-02-20 05:49:58 +0000 |
| commit | 79501c8dd3baad1836d61363c161ec48bbffe99b (patch) | |
| tree | e2d0b5847dadfdbeb855ff14404cb4a9200bdf7e /lisp/select.el | |
| parent | d0c3269a29e943036a4373cb9e28a9520b953ed3 (diff) | |
| download | emacs-79501c8dd3baad1836d61363c161ec48bbffe99b.tar.gz emacs-79501c8dd3baad1836d61363c161ec48bbffe99b.zip | |
(x-get-selection): Set default data-type of selection
to COMPOUND_TEXT.
(selection-converter-alist): Add an entry for COMPOUND_TEXT.
Diffstat (limited to 'lisp/select.el')
| -rw-r--r-- | lisp/select.el | 6 |
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. |
| 31 | The argument TYPE (default `PRIMARY') says which selection, | 31 | The argument TYPE (default `PRIMARY') says which selection, |
| 32 | and the argument DATA-TYPE (default `STRING') says how to convert the data." | 32 | and the argument DATA-TYPE (default `COMPOUND_TEXT') says |
| 33 | (x-get-selection-internal (or type 'PRIMARY) (or data-type 'STRING))) | 33 | how 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) |