From: Stefan Monnier Date: Thu, 17 Aug 2006 03:36:17 +0000 (+0000) Subject: (global-map): Allow yanking with mouse-2 at a spot whose X-Git-Tag: emacs-pretest-22.0.90~971 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3e9323d603b0b47ab47af3398a8154b13d2d7e13;p=emacs.git (global-map): Allow yanking with mouse-2 at a spot whose cursor would normally be drawn in the fringe. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 98665776587..6ef271e8f48 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2006-08-16 Stefan Monnier + * mouse.el (global-map): Allow yanking with mouse-2 at a spot whose + cursor would normally be drawn in the fringe. + * font-lock.el (font-lock-extend-region-wholelines): Fix up typo. Reported by Martin Rudalics . diff --git a/lisp/mouse.el b/lisp/mouse.el index 043c78578db..4e11b1d4c96 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -2398,6 +2398,8 @@ and selects that window." (global-set-key [right-fringe mouse-1] 'mouse-set-point) (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-2]) (global-set-key [mouse-3] 'mouse-save-then-kill) ;; By binding these to down-going events, we let the user use the up-going