From: Glenn Morris Date: Wed, 29 Apr 2015 06:32:09 +0000 (-0700) Subject: Replace an obsolete function alias X-Git-Tag: emacs-25.0.90~2258 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4594f894e60a50e3b5449d762b44a6c69b1bcae6;p=emacs.git Replace an obsolete function alias * 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. --- diff --git a/lisp/isearch.el b/lisp/isearch.el index 35fb0608dd0..c714ba0055d 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -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))) diff --git a/lisp/mouse-copy.el b/lisp/mouse-copy.el index 609713ce5fd..d3c3c80fd99 100644 --- a/lisp/mouse-copy.el +++ b/lisp/mouse-copy.el @@ -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) diff --git a/lisp/obsolete/mouse-sel.el b/lisp/obsolete/mouse-sel.el index fcadedf6262..865a4277dda 100644 --- a/lisp/obsolete/mouse-sel.el +++ b/lisp/obsolete/mouse-sel.el @@ -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: