Hi,
From lurking on this list for a while I get the impression that the
redisplay
code is very tricky. From looking through the mercurial repository on
src/redisplay.c I can see a lot of comments that support this.
I am interested in trying to add a regression suite of sorts to the redisplay
code. I took a quick look around the repository and I did not see anything
like this - but maybe I missed it.
I have in mind something like this: Create some hooks into redisplay.c that
make some critical data structures (like struct display_line) have a simple
Lisp accessible representation. Imagine serializing a struct into a simple
string or Lisp list.
Then I could create test cases that created a particular redisplay situation
and then checked to see if the data structs ended up with the right values.
It would be nice if this kind of testing could be done from inside a running
xemacs process.
The goal of this kind of regression suite would be to create enough tests
that can be used as a way of validating any future changes to the redisplay
code.
My question: Is there any C code in xemacs that creates simple Lisp structures
and returns them to Lisp? Basically I want to create a function that would
turn a struct display_line into a Lisp list - is there some code that I could
look at to get an idea on how to do this?
Thanks for any comments.
-Ram
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta