+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):
(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)