[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: clipboard/selection: customization vs. rebinding
From: |
Stefan Monnier |
Subject: |
Re: clipboard/selection: customization vs. rebinding |
Date: |
Thu, 30 Jun 2011 12:57:20 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> Shouldn't we do something like the patch below?
>>
>> -(global-set-key [left-fringe mouse-1] 'mouse-set-point)
>> -(global-set-key [right-fringe mouse-1] 'mouse-set-point)
>> +(global-set-key [left-fringe mouse-1] [mouse-1])
>> +(global-set-key [right-fringe mouse-1] [mouse-1])
> That doesn't work for mouse-yank-primary. Binding [left-fringe mouse-2]
> to [mouse-2], and doing mouse-2 in the fringe, gives an error:
> Debugger entered--Lisp error: (error "mouse-yank-primary must be bound
> to an event with parameters")
> call-interactively(mouse-yank-primary nil nil)
> The problem is that mouse events are not passed along to keyboard macro
> bindings.
Hmm... so maybe we should do
(define-key function-key-map [left-fringe mouse-2] [mouse-2])
instead. The point is simply that by default clicks in the fringe
should fallback to doing the same as clicks in the text area.
Stefan