mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Improve 'gui-get-selection' on MS-Windows
* lisp/term/w32-win.el (w32--get-selection): Allow UTF8_STRING and TEXT data types as well, since w32select.c handles that correctly.
This commit is contained in:
parent
a7d2aa7e0c
commit
e53b90a5ce
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ also be textual."
|
||||||
|
|
||||||
(defun w32--get-selection (&optional type data-type)
|
(defun w32--get-selection (&optional type data-type)
|
||||||
(cond ((and (eq type 'CLIPBOARD)
|
(cond ((and (eq type 'CLIPBOARD)
|
||||||
(eq data-type 'STRING))
|
(memq data-type '(STRING UTF8_STRING TEXT)))
|
||||||
(with-demoted-errors "w32-get-clipboard-data:%S"
|
(with-demoted-errors "w32-get-clipboard-data:%S"
|
||||||
(w32-get-clipboard-data)))
|
(w32-get-clipboard-data)))
|
||||||
((eq data-type 'TARGETS)
|
((eq data-type 'TARGETS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue