diff options
| author | Stefan Monnier | 2011-11-29 13:39:16 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-11-29 13:39:16 -0500 |
| commit | c935221f0bcd80ec64f34edb2e9439ed4373f687 (patch) | |
| tree | bf1fd85eff2e30d80bf8be18f6600a1b529f98ef | |
| parent | 2b56b87e029eaa04f243718c1690eca5545c5102 (diff) | |
| download | emacs-c935221f0bcd80ec64f34edb2e9439ed4373f687.tar.gz emacs-c935221f0bcd80ec64f34edb2e9439ed4373f687.zip | |
* lisp/isearch.el (isearch-yank-x-selection): Deactivate mark.
Fixes: debbugs:10022
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/isearch.el | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b25374d1eb0..d6275c80374 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-11-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * isearch.el (isearch-yank-x-selection): Deactivate mark (bug#10022). | ||
| 4 | |||
| 1 | 2011-11-29 Chong Yidong <cyd@gnu.org> | 5 | 2011-11-29 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * indent.el (indent-for-tab-command, indent-according-to-mode): | 7 | * indent.el (indent-for-tab-command, indent-according-to-mode): |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 6d95993bdd3..2a7f191bd81 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1548,7 +1548,10 @@ If search string is empty, just beep." | |||
| 1548 | (defun isearch-yank-x-selection () | 1548 | (defun isearch-yank-x-selection () |
| 1549 | "Pull current X selection into search string." | 1549 | "Pull current X selection into search string." |
| 1550 | (interactive) | 1550 | (interactive) |
| 1551 | (isearch-yank-string (x-get-selection))) | 1551 | (isearch-yank-string (x-get-selection)) |
| 1552 | ;; If `x-get-selection' returned the text from the active region, | ||
| 1553 | ;; then it "used" the mark which we should hence deactivate. | ||
| 1554 | (when select-active-regions (deactivate-mark))) | ||
| 1552 | 1555 | ||
| 1553 | 1556 | ||
| 1554 | (defun isearch-mouse-2 (click) | 1557 | (defun isearch-mouse-2 (click) |