emacs-devel
[Top][All Lists]
Advanced

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

Re: Binding a command to the down-event of a toolbar button


From: Stefan Monnier
Subject: Re: Binding a command to the down-event of a toolbar button
Date: Fri, 31 Mar 2006 09:34:20 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> I think my request for down-events on the tool-bar is related to some other
>> people's requests to be able to bind different actions for mouse-1, mouse-2,
>> mouse-3.
> Another interface I have seen that having a down-event would enable is to
> execute a common action on normal clicking of the button, but if the mouse
> button is held down for around 1 - 2 seconds, then a menu appears with less
> common related actions.

Actually, I've only seen such behavior on Mac OS X where they have to deal
with 1-button mouses (and where this context menu is also available (without
delay) on mouse-3, if you have a 3-button mouse, or IIRC also with
C-mouse-1).

This said, a more pressing issue is the fact that clicked are dropped on the
floor if they happen just during redisplay.  This is *very* annoying if your
display includes a seconds-precise timer or worse.  It make it difficult in
MPC.el to stop the fast-forward (or rewind) since they cause constant
redisplay (since the seconds-precise counter counts then even faster
than 1s/s).


        Stefan




reply via email to

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