aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorChong Yidong2010-07-14 14:03:39 -0400
committerChong Yidong2010-07-14 14:03:39 -0400
commitf9d71b4284fa1009f8c38a9d389e2202ef1e4dd9 (patch)
tree356cc85fe39e64d946b3d3435f4362b384e22473 /lisp/mouse.el
parent8f2eaa8abd8630a6707a0e1d9bca9293497ef915 (diff)
downloademacs-f9d71b4284fa1009f8c38a9d389e2202ef1e4dd9.tar.gz
emacs-f9d71b4284fa1009f8c38a9d389e2202ef1e4dd9.zip
Change clipboard/primary selection to X application standards.
* lisp/menu-bar.el (menu-bar-enable-clipboard): Don't overwrite Cut/Copy/Paste menu bar items. * lisp/mouse.el: Bind mouse-2 to mouse-yank-primary. (mouse-drag-copy-region): Default to nil. * lisp/simple.el (select-active-regions): Default to t. (push-mark-command): Don't overwrite primary with empty string. * lisp/term/x-win.el (x-select-enable-clipboard): Default to t. (x-initialize-window-system): Don't overwrite Paste menu item.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 30fd26b51fc..b159add0d91 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -41,7 +41,7 @@
41 :type 'boolean 41 :type 'boolean
42 :group 'mouse) 42 :group 'mouse)
43 43
44(defcustom mouse-drag-copy-region t 44(defcustom mouse-drag-copy-region nil
45 "If non-nil, mouse drag copies region to kill-ring." 45 "If non-nil, mouse drag copies region to kill-ring."
46 :type 'boolean 46 :type 'boolean
47 :version "22.1" 47 :version "22.1"
@@ -2443,7 +2443,7 @@ choose a font."
2443(global-set-key [left-fringe mouse-1] 'mouse-set-point) 2443(global-set-key [left-fringe mouse-1] 'mouse-set-point)
2444(global-set-key [right-fringe mouse-1] 'mouse-set-point) 2444(global-set-key [right-fringe mouse-1] 'mouse-set-point)
2445 2445
2446(global-set-key [mouse-2] 'mouse-yank-at-click) 2446(global-set-key [mouse-2] 'mouse-yank-primary)
2447;; Allow yanking also when the corresponding cursor is "in the fringe". 2447;; Allow yanking also when the corresponding cursor is "in the fringe".
2448(global-set-key [right-fringe mouse-2] 'mouse-yank-at-click) 2448(global-set-key [right-fringe mouse-2] 'mouse-yank-at-click)
2449(global-set-key [left-fringe mouse-2] 'mouse-yank-at-click) 2449(global-set-key [left-fringe mouse-2] 'mouse-yank-at-click)