Enable yanking non-Latin-1 primary selections in I-Search
* lisp/isearch.el (isearch-yank-x-selection): Call `gui-get-primary-selection', which accounts for non-Latin-1 encodings.
This commit is contained in:
parent
5dc0981875
commit
1437fc2bca
1 changed files with 2 additions and 2 deletions
|
@ -2665,9 +2665,9 @@ always reads a string from the `kill-ring' using the minibuffer."
|
|||
(isearch-yank-string (current-kill 1)))))
|
||||
|
||||
(defun isearch-yank-x-selection ()
|
||||
"Pull current X selection into search string."
|
||||
"Pull current X primary selection into search string."
|
||||
(interactive)
|
||||
(isearch-yank-string (gui-get-selection))
|
||||
(isearch-yank-string (gui-get-primary-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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue