Attached is an updated version of this patch, relative to the current trunk (bzr 112869). Since the last version of the patch we've added several inline functions to lisp.h, such as specpdl_symbol, make_lisp_proc, SAVE_VALUEP, and I've merged them all in. I'd like to apply this soon.