The redisplay mechanism is one of the most complicated sections of SXEmacs, especially from a conceptual standpoint. This is doubly so because, unlike for the basic aspects of the Lisp interpreter, the computer science theories of how to efficiently handle redisplay are not well-developed.
When working with the redisplay mechanism, remember the Golden Rules of Redisplay: