home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / lucidem / help / 158 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1000 b   |  26 lines

  1. Newsgroups: alt.lucid-emacs.help
  2. Sender: help-lucid-emacs-request@lucid.com
  3. Date: Tue, 28 Jul 92 12:18:00 PDT
  4. Message-ID: <9207281918.AA18794@thalidomide.lucid>
  5. X-Windows: More than enough rope.
  6. From: Jamie Zawinski <jwz@lucid.com>
  7. Subject: Re: Finding highlit extent
  8. References: <AeRNfX___5g8A60Bls@cs.city.ac.uk>
  9. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  10. Lines: 14
  11.  
  12. > I've got several areas with highlight extents on them.  The user can
  13. > click button3 to pull up a popup menu.  Some options on that menu would
  14. > like to operate on the data found in the currently highlit extent.  But
  15. > how do you find this?
  16.  
  17. If you use (interactive "e") then you are passed the event object that
  18. invoked this command.  Then you can use `event-point' on that to get the
  19. buffer position at which the click occurred.  You can find the topmost
  20. extent at a point with the `extent-at' function.
  21.  
  22. In 19.2 there is no way to find the face of an extent, but that is fixed
  23. in 19.3 (real soon now...)
  24.  
  25.     -- Jamie
  26.