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