]> git.eshelyaron.com Git - emacs.git/commitdiff
Replace an obsolete function alias
authorGlenn Morris <rgm@gnu.org>
Wed, 29 Apr 2015 06:32:09 +0000 (23:32 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 29 Apr 2015 06:40:27 +0000 (23:40 -0700)
* lisp/isearch.el (isearch-yank-x-selection):
* lisp/mouse-copy.el (mouse-drag-secondary-pasting)
(mouse-drag-secondary-moving):
* lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
Replace obsolete alias x-get-selection with gui-get-selection.

lisp/isearch.el
lisp/mouse-copy.el
lisp/obsolete/mouse-sel.el

index 35fb0608dd0eec7299fefde8cc63c6ace9074d60..c714ba0055d4211e450a33a33893bf0980cbf9e4 100644 (file)
@@ -1924,8 +1924,8 @@ If search string is empty, just beep."
 (defun isearch-yank-x-selection ()
   "Pull current X selection into search string."
   (interactive)
-  (isearch-yank-string (x-get-selection))
-  ;; If `x-get-selection' returned the text from the active region,
+  (isearch-yank-string (gui-get-selection))
+  ;; If `gui-get-selection' returned the text from the active region,
   ;; then it "used" the mark which we should hence deactivate.
   (when select-active-regions (deactivate-mark)))
 
index 609713ce5fde4b794c9c70dae1bd692e698857e0..d3c3c80fd99d1a2758a444419da8594653b78d4f 100644 (file)
@@ -177,7 +177,7 @@ put the point at one place, then click and drag over some other region."
            (mouse-copy-work-around-drag-bug start-event last-input-event))
        ;; Remember what we do so we can undo it, if necessary.
        (setq mouse-copy-last-paste-start (point))
-       (insert (x-get-selection 'SECONDARY))
+       (insert (gui-get-selection 'SECONDARY))
        (setq mouse-copy-last-paste-end (point)))
     (setq mouse-copy-last-paste-start nil)))
 
@@ -216,7 +216,7 @@ by johnh@ficus.cs.ucla.edu."
   (if (mouse-drag-secondary start-event)
       (progn
        (mouse-kill-preserving-secondary)
-       (insert (x-get-selection 'SECONDARY))))
+       (insert (gui-get-selection 'SECONDARY))))
 )
 
 (provide 'mouse-copy)
index fcadedf62626a0fec939f8c8997e7a21924f66ff..865a4277ddaf4f4f742c6fa0ac134d33915346f8 100644 (file)
@@ -315,7 +315,7 @@ is `interprogram-cut-paste'.")
        (or (gui-selection-value)
            (bound-and-true-p x-last-selected-text-primary)
             gui--last-selected-text-primary)
-      (x-get-selection selection)))
+      (gui-get-selection selection)))
   "Function to call to get the selection.
 Called with one argument: