home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / lucidem / help / 376 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.4 KB  |  32 lines

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