emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: mouse-yank-at-click (with mouse-2) in fringe


From: Chong Yidong
Subject: Re: mouse-yank-at-click (with mouse-2) in fringe
Date: Tue, 14 Nov 2006 11:52:05 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

Klaus Zeitler <address@hidden> writes:

> in August we had a discussion about pasting (with mouse-2) in
> fringe.  I noticed that it doesn't work anymore, instead I get:
> After 0 kbd macro iterations: mouse-yank-at-click must be bound to
> an event with parameters

The following patch should make mouse-2 in the fringe work (like I
said previously, I can't find a version in which it worked before.)

*** emacs/lisp/mouse.el.~1.305.~        2006-11-06 09:29:51.000000000 -0500
--- emacs/lisp/mouse.el 2006-11-14 11:50:48.000000000 -0500
***************
*** 2416,2422 ****
  
  (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
--- 2416,2422 ----
  
  (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 [mouse-3]     'mouse-save-then-kill)
  
  ;; By binding these to down-going events, we let the user use the up-going





reply via email to

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