I'd like to use ERT with Emacs23. ERT is bundled with Emacs24. Latest version of ERT does not work with Emacs23 because of lack of
Is there an offical way of using ERT with Emacs23?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
You can obtain legacy ERT versions for use with Emacs 23 from the old repository of ERT, at commit fb3c278d. Note that this version significantly differs from recent ERT versions. Notably, it lacks test skipping, and many bug fixes.
I would not copy ERT from Emacs 24, though. In recent Emacs releases, ERT uses
lexical-binding: t, so the code may easily depend on lexical binding to work correctly, which is simply not available on Emacs 23.
And generally, I'd not write new test suites for Emacs 23 anymore. It's just not worth the effort, imho. The last release of Emacs 23 was three years ago, and we are—albeit slowly—heading towards Emacs 25.
Answer for other lost souls:
mkdir compat git clone git://git.savannah.gnu.org/emacs.git cd emacs git show bc715d67b3997988e2a48286410d45404e49342c:lisp/emacs-lisp/ert.el > ../compat/ert.el cd ../compat curl -L http://elpa.gnu.org/packages/cl-lib-0.5.el -o cl-lib.el
load-path either by using
-L command line switch or by using
(add-to-list 'load-path (expand-file-name "compat").