I've been reading XEmacs source code today. It's amazing how much the C code resembes the GNU version (but with more derogatory comments).