Mats Lidell writes:
Finally return. Could that possibly be handled just like the general
left-button support? Hit return on an extent and follow the link?
I think that's the right thing to do on read-only text.
I was thinking that we probably ought to have some kind of widget to
create links. Probably implement it as an extent with an extent-local
keymap for all the relevant events (all mouse button events plus
keyboard events for widget traversal (TAB, BACKTAB) and activation
(RET)). On top of the generic link creator, layer some convenience
APIs.
The one I have in mind in particular would bind generic functions to
the various events, and the generic functions would use extent
properties and maybe buffer-local variables to determine the targets
of the generic functions (which place to jump to for left click or
RET, which menu to pop up for right click).
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta