diff options
| author | Chong Yidong | 2010-08-24 11:48:14 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-08-24 11:48:14 -0400 |
| commit | 1c409d0b963ebdb1f48b90ddce85c56d989bee5f (patch) | |
| tree | db1bf3baea9d24a20e325d76c52699c64daef7b7 /lisp | |
| parent | 372214322c37ded1631741b55cb125a99ff6bdbd (diff) | |
| download | emacs-1c409d0b963ebdb1f48b90ddce85c56d989bee5f.tar.gz emacs-1c409d0b963ebdb1f48b90ddce85c56d989bee5f.zip | |
Avoid clobbering primary selection when switching frames (Bug#6872).
* lisp/mouse.el (mouse-yank-primary): Avoid setting primary when
deactivating the mark (Bug#6872).
* src/keyboard.c (command_loop_1): Don't set primary selection during
handle-switch-frame (Bug#6872).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mouse.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1402c45b125..79b5f6583a0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-08-24 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mouse.el (mouse-yank-primary): Avoid setting primary when | ||
| 4 | deactivating the mark (Bug#6872). | ||
| 5 | |||
| 1 | 2010-08-23 Michael Albinus <michael.albinus@gmx.de> | 6 | 2010-08-23 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/dbus.el: Accept UNIX domain sockets as bus address. | 8 | * net/dbus.el: Accept UNIX domain sockets as bus address. |
diff --git a/lisp/mouse.el b/lisp/mouse.el index c9b190f1c79..a2a0191ce79 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1268,10 +1268,11 @@ regardless of where you click." | |||
| 1268 | (interactive "e") | 1268 | (interactive "e") |
| 1269 | ;; Give temporary modes such as isearch a chance to turn off. | 1269 | ;; Give temporary modes such as isearch a chance to turn off. |
| 1270 | (run-hooks 'mouse-leave-buffer-hook) | 1270 | (run-hooks 'mouse-leave-buffer-hook) |
| 1271 | ;; Without this, confusing things happen upon e.g. inserting into | ||
| 1272 | ;; the middle of an active region. | ||
| 1271 | (when select-active-regions | 1273 | (when select-active-regions |
| 1272 | ;; Without this, confusing things happen upon e.g. inserting into | 1274 | (let (select-active-regions) |
| 1273 | ;; the middle of an active region. | 1275 | (deactivate-mark))) |
| 1274 | (deactivate-mark)) | ||
| 1275 | (or mouse-yank-at-point (mouse-set-point click)) | 1276 | (or mouse-yank-at-point (mouse-set-point click)) |
| 1276 | (let ((primary | 1277 | (let ((primary |
| 1277 | (cond | 1278 | (cond |