fix errors using nxhtml with Emacs 24.2.1