]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix I can't paste international text from clipboard
authorYuuki Harano <masm+github@masm11.me>
Tue, 16 Feb 2021 14:41:33 +0000 (23:41 +0900)
committerYuuki Harano <masm+github@masm11.me>
Tue, 16 Feb 2021 14:41:33 +0000 (23:41 +0900)
* lisp/select.el (gui--selection-value-internal):
Try UTF8_STRING when pgtk as well as x.

lisp/select.el

index c39bc93deab9ea6b2d64aae3ee88f514dfac854f..897b66a028c60330d47a7a3653a200706ba5c4e4 100644 (file)
@@ -165,7 +165,7 @@ The value nil is the same as the list (UTF8_STRING COMPOUND_TEXT STRING)."
 Call `gui-get-selection' with an appropriate DATA-TYPE argument
 decided by `x-select-request-type'.  The return value is already
 decoded.  If `gui-get-selection' signals an error, return nil."
-  (let ((request-type (if (eq window-system 'x)
+  (let ((request-type (if (memq window-system '(x pgtk))
                           (or x-select-request-type
                               '(UTF8_STRING COMPOUND_TEXT STRING))
                         'STRING))