aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2010-08-24 11:48:14 -0400
committerChong Yidong2010-08-24 11:48:14 -0400
commit1c409d0b963ebdb1f48b90ddce85c56d989bee5f (patch)
treedb1bf3baea9d24a20e325d76c52699c64daef7b7 /lisp
parent372214322c37ded1631741b55cb125a99ff6bdbd (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lisp/mouse.el7
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 @@
12010-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
12010-08-23 Michael Albinus <michael.albinus@gmx.de> 62010-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