On Wed, 06 Apr 2011 15:28:07 +0200 David Engster wrote: DE> It seems like putting (require 'ert) into an eval-when-compile is not DE> sufficient. You have to require it unconditionally. DE> So maybe your first idea was The Right Thing To Do, meaning to use DE> (require 'ert nil t) DE> and then test for feature 'ert. Alternatively, you could use the current DE> hack and put this require in there, too. But this is getting DE> increasingly ugly... See the attached patch, which just adds (require 'ert nil t) *in addition* to the defmacro hack. It seems to DTRT for me, let me know what you think. Ted