Stephen J. Turnbull wrote:
On second thought, following up on your own "notably, neither [this]
nor [that] are on this list" logic, what problems does this solve?
One more thing someone else is maintaining that you don't have to? You
get font, image, and plugin support for free without having to screw
around with the associated libraries directly.
I know little about current Gecko internals, and less about KHTML, but I
would be surprised if it was a big deal to insert/delete text in an
existing document -- that's what Mozilla's HTML editor does all the
time, after all, and I believe you can do crap like that from JS too.
It just struck me that the xemacs redisplay is very nearly as complex as
a web browser's redisplay, and in essentially the same ways. And
wouldn't it be nice if we had one *less* implementation of the same
module.
On the other side.... I have to wonder how we go about linking
markers, text properties, and extents to things KHTML knows about?
Why would it have to? Emacs redisplay doesn't know about markers,
really. And it only knows about text properties to the extent (ha ha)
necessary to answer the question "what visible attributes does this
character have?" Last time I looked at it (which was a long time and
several rewrite ago, but still) the interface between editor logic and
redisplay logic was really quite small. Assuming there are the internal
emacs buffers, and then there's the per-window "buffer" (that's really
an HTML document) all you'd really need is insert rich-string / delete
region / scroll-to-line / position-visible-p / maybe a couple others.
I suspect this is going to be true of most advanced redisplays; the
work there seems to be on browsers and word processors, not on
powerful-editor-as-IDE.
For *redisplay* purposes, emacs is a very, very, very simple word
processor. Simpler than most. Redisplay doesn't have to know there's a
lispm emulator in there any more than it knows that its other back-ends
do TCP and crypto.
Would anybody want to program in any of the fancy word processors
now
available (let alone the Mozilla text widget)?
I think Emacs certainly makes fewer redisplay demands than e.g. the
Mozilla HTML editor.
Today's XEmacs redisplay is undoubtedly an overcomplexified
monstrosity, but I can't help feeling that some of the complexity is a
reflection of complex problems being solved.
*cough* Uh, ok.
Not that I expect something like this to ever happen, but I thought I'd
throw it out there just in case it made someone go "hey, neat!" and
become motivated to work on that instead of continuing to commit
unnatural acts with a defenseless MULE.
--
Jamie Zawinski
jwz(a)jwz.org
http://www.jwz.org/
jwz(a)dnalounge.com
http://www.dnalounge.com/