> versions of Emacs, but I'm not sure how I should check the version of
> Emacs.  Parsing the string `emacs-version' seems like a bad idea.

By "parsing", do you mean version<?