home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 24 Dec 1992 22:46:22 EST
- Date: Thu, 24 Dec 1992 19:47:25 PST
- Message-ID: <9212250347.AA24601@thalidomide.lucid>
- X-Windows: The Cutting Edge of Obsolescence.
- From: jwz@lucid.com (Jamie Zawinski)
- Sender: jwz%thalidomide@lucid.com
- Subject: Re: Idea: graphical extents
- References: <9212250147.AA15972@thymus.synaptics>
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Lines: 47
-
- In message <9212250147.AA15972@thymus.synaptics> Dave Gillespie wrote:
- >
- > So all the regular optimizations still apply, e.g., if both markers of an
- > extent are off the beginning or end of the screen, the display routines can
- > ignore the extent.
-
- Well, one could do that, but that's not what happens now when the endpoints of
- an extent are off the screen. Redisplay partitions the displayed portion of
- the buffer into nonoverlapping "extent fragments", and then displays those.
- It doesn't matter where the "real" endpoints are.
-
- > Rectangle extents would allow a more appropriate kind of highlighting for
- > rectangle operations. I posted a suggestion along those lines a while ago
- > here, but I was envisioning some way of faking it up with a group of regular
- > extents. Imagine how easy it would be with a single rectangle extent
- > instead!
-
- Imagine how much easier it would be to fake it up with regular extents than to
- implement rectangle extents! :-)
-
- > As soon as you have filled objects you run into the issue of drawing order,
- > though, which the current extent data structure probably isn't well-suited
- > to handle.
-
- (Actually it is.)
-
- > Suppose you wanted to display a change bar to the right of a set of lines in
- > a buffer.
-
- We're going to have a column down the left side of the screen that glyphs will
- be displayed in (for example, the breakpoint and PC-indicator icons
- corresponding to a line.) Extents will have attributes which are the glyphs
- to display, and whether those glyphs should go in the "info column" instead of
- inline with the text. (This was actually mostly working at one time, but then
- we had to cut our losses w.r.t. redisplay.) "Display as a change bar" will
- probably be another option (we may want Energize to use that to mark those
- functions which will be recompiled at the next build, instead of a changed
- background color as we do now.)
-
- > Anyway, I may someday have time to work on this myself, but I wouldn't be
- > surprised if Jamie or another person who already knows the lemacs internals
- > could do it in an afternoon. Hint, hint. :-)
-
- Ha! I can almost guarentee that you'll have to rewrite half of redisplay to
- make this work. (This is axiomatic for most interesting emacs tasks...)
-
- -- Jamie
-