cursor: add missing tracing macros.
cursor: set error on currupted result document.
cursor: whitespace.