home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Wed, 26 Aug 1992 10:29:11 EDT
- Date: Wed, 26 Aug 1992 10:22:56 EDT
- From: weiner@pts.mot.com (Bob Weiner)
- Message-ID: <9208261422.AA02123@pts5.pts.mot.com>
- Subject: Re: Will the next version of Lucid Emacs have the following?
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 56
-
- In message <9208252317.AA08280@pts4.pts.mot.com> Bob Weiner wrote:
- >
- > 1. An operator that returns a list of the extents in a buffer.
-
- You can use map-extents for this, and if you get in the habit of using
- map-extents instead of building a list and iterating over it, your code
- will generate less garbage.
-
- Ok. Why does map-extents always return nil, rather than a list of results
- of the function application, as is common for map operators? If this
- was done to minimize unused return values, a flag that would return
- the list would be handy so that the programmer still has control without
- having to assemble the list himself.
-
- > It would be nice to be able to filter this list when making the
- > call so that it returned only those extents using a specified
- > set of faces.
-
- In 19.2 there is no way to get the face of an extent, but there will be
- in 19.3.
-
- > 2. get-face-<attribute> functions, e.g. get-face-color.
- > To match the set-face functions presently available, so one
- > doesn't have to parse the face data structure.
-
- It's in there; (apropos "^face-") or see prim/faces.el.
-
- Got it.
-
- > 3. A way to delete all extents in a buffer.
- > A way to delete all extents with a set attributes in a buffer.
- > A way to delete all extents with a particular set of faces in a buffer.
-
- These would be good utilities to have. They can all be implemented in
- terms of map-extents.
-
- > Which is just to say that the Epoch zone/style API seems more mature.
-
- No surprise there, I guess :-) We put a lot more work into the substrate
- needed to implement extents/faces than the API; Energize doesn't need an
- emacs-lisp interface to them at all; and until about two weeks before 19.1
- was released, there wasn't one. So the paint's still a little wet.
-
- > An easy way to get Lucid Emacs there is just to compare how simply the
- > zone/style functions in Epoch can be done using extent/face operators
- > in Lucid Emacs and to plug any holes found. This should be a much
- > more efficient process than trying to figure out from scratch what
- > operators Lucid Emacs should have.
-
- Agreed; that's why I'm glad you're porting Hyperbole!
-
- I just hope the real V19 doesn't have another incompatible API.
-
- Bob
-
-
-