First go at emacs 23 compatibility

..plus a few other small tweaks, mostly docs.