Commit c935221f authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/isearch.el (isearch-yank-x-selection): Deactivate mark.

Fixes: debbugs:10022
parent 2b56b87e
2011-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
* isearch.el (isearch-yank-x-selection): Deactivate mark (bug#10022).
2011-11-29 Chong Yidong <cyd@gnu.org>
* indent.el (indent-for-tab-command, indent-according-to-mode):
......
......@@ -1548,7 +1548,10 @@ 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)))
(isearch-yank-string (x-get-selection))
;; If `x-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)))
(defun isearch-mouse-2 (click)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment