hrvoje, it looks like you're the maintainer of wid-edit. i'm trying to modify
about.el so that button1 as well as button2 selects a link. i notice a few
problems with wid-edit:
1] it doesn't provide any obvious way of controlling which buttons do what.
2] all of the modal loops in it should be eliminated and rewritten using
mouse-track hooks. i originally wrote the mouse-track hooks to be very flexible
and allow for multiple simultaneous actions with different mouse gestures --
e.g. selection of text at the same time as doing something on a "click", i.e.
down+up without significant movement. last year i extended mouse-track so it
will work with all buttons, and changed the default binding of button2 to use it
as well as button1. when drag/drop gets implemented, it can entirely be done
using mouse-track hooks even if the dragging is to be done with button2. your
code in wid-edit tries to do some of the same things, but not so well -- e.g. it
doesn't handle text selection. rewriting it using mouse-track hooks will get
you these benefits and others for free and make the code in wid-edit smaller and
simpler. e.g. you won't have to manually apply mouse-face, glyph up/down, etc.
i will gladly help you if you run into any problems with mouse-track in the
process of making this change.
btw point #1 comes for free if you use the activation mechanism i recently
wrote, which sits on top of mouse-track and provides exactly the "do an action
upon click" that you implement in wid-edit.
--
ben
I'm sometimes slow in getting around to reading my mail, so if you
want to reach me faster, call 520-661-6661.
See
http://www.666.com/ben/chronic-pain/ for the hell I've been
through.