home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Wed, 2 Sep 1992 14:57:42 EDT
- Date: Wed, 2 Sep 1992 11:55:57 PDT
- Message-ID: <9209021855.AA01064@thalidomide.lucid>
- X-Windows: Complex nonsolutions to simple nonproblems.
- From: jwz@lucid.com (Jamie Zawinski)
- Sender: jwz%thalidomide@lucid.com
- Subject: Re: Mouse enhancements for buffer-menu mode
- References: <9209021547.AA05541@pts5.pts.mot.com>
- <GRUNWALD.92Sep2122628@mumble.cs.colorado.edu>
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Lines: 18
-
- In message <GRUNWALD.92Sep2122628@mumble.cs.colorado.edu> Dirk Grunwald wrote:
- >
- > I think he's saying you can't tell what the mouse buttons are going to
- > do before you do something.
-
- Another way to implement context-sensitive mouse clicks would be to attach
- keymaps to extents or faces. Instead of having a mouse button bound to a
- function which did some kind of context-sensitive dispatching, this
- dispatching could be encoded in the keymap structure. When something like
- hyperbole saw something that looked like a pathname, it would put that text in
- a face which had a particular set of pathname-specific bindings. Something
- that looked like a network address would have a different set of bindings.
-
- If faces had keymaps, then this would let you have different *key* bindings
- depending on the position of the cursor, as well as attaching different mouse
- bindings to different buffer positions.
-
- -- Jamie
-