[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

left-fringe no longer groks mouse-2 or mouse-3 patch

From: Doug Maxey
Subject: left-fringe no longer groks mouse-2 or mouse-3 patch
Date: Tue, 30 Jan 2007 16:20:53 -0600

It seems that I can no longer use the fringe to mark and cut a text
region, or to paste using the left fringe.

As I have lost some of the ability to see the *exact* point where the
cut and paste are being done, the left fringe was a great place to cut and
paste from.

A little searching got me to the patch posted on emacs-pretest-bugs,
and inspired me to spin up a little patch of my own

--- emacs/lisp/mouse.el.~1.310.~        2007-01-28 23:18:00.000000000 -0600
+++ emacs/lisp/mouse.el 2007-01-30 16:04:24.000000000 -0600
@@ -2426,7 +2426,10 @@ and selects that window."
 (global-set-key [mouse-2]      'mouse-yank-at-click)
 ;; Allow yanking also when the corresponding cursor is "in the fringe".
 (global-set-key [right-fringe mouse-2] 'mouse-yank-at-click)
+(global-set-key [left-fringe mouse-2] 'mouse-yank-at-click)
 (global-set-key [mouse-3]      'mouse-save-then-kill)
+(global-set-key [right-fringe mouse-3] 'mouse-save-then-kill)
+(global-set-key [left-fringe mouse-3]  'mouse-save-then-kill)
 ;; By binding these to down-going events, we let the user use the up-going
 ;; event to make the selection, saving a click.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]