[Top][All Lists]

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

Re: when to bind *down-mouse* vs *mouse*?

From: Andreas Schwab
Subject: Re: when to bind *down-mouse* vs *mouse*?
Date: Fri, 03 Dec 2004 02:10:24 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> I sent this to help-gnu-emacs a few days ago, but got no response. Can
> anyone here help?

*Note Rebinding Mouse Buttons: (emacs)Mouse Buttons, for an explanation of
how the mouse events work.  Which event should be bound basically depends
on when the action is supposed to happen.

If you press a mouse button you get a down event.  If you release the
button you get a click event (no modifier).  If you move the mouse while
pressing a button you get a drag event.  Double and triple click events
are generated when you release and press a button (twice for triple click)
in less than double-click-time without moving the mouse.  Note that all
those events are actually generated, but some are discarded if unbound.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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