]> git.eshelyaron.com Git - emacs.git/commitdiff
In gui-get-primary-selection use gui--selection-value-internal (Bug#20906)
authorMike FABIAN <mfabian@redhat.com>
Thu, 8 Oct 2015 13:45:32 +0000 (15:45 +0200)
committerAndreas Schwab <schwab@suse.de>
Mon, 12 Oct 2015 08:34:51 +0000 (10:34 +0200)
* lisp/select.el (gui-get-primary-selection): In gui-get-primary-selection
use gui--selection-value-internal (Bug#20906)

lisp/select.el

index 74b48d1d81266b7ae69d0d2c0a1897f5f55a808a..2d2ac5fa422170a3e4a6e70bc50ff2016cae334f 100644 (file)
@@ -235,7 +235,7 @@ The value nil is the same as the list (UTF8_STRING COMPOUND_TEXT STRING)."
 
 (defun gui-get-primary-selection ()
   "Return the PRIMARY selection, or the best emulation thereof."
-  (or (gui-get-selection 'PRIMARY)
+  (or (gui--selection-value-internal 'PRIMARY)
       (and (fboundp 'w32-get-selection-value)
            (eq (framep (selected-frame)) 'w32)
            ;; MS-Windows emulates PRIMARY in x-get-selection, but only