From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Trying to add ERT test cases Date: Tue, 20 Sep 2011 09:01:44 -0600 Message-ID: <87obyftf22.fsf@gmail.com> References: <80sjnswzh5.fsf@somewhere.org> <87ipoov7q3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R628r-00028t-VM for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 11:21:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R628q-00044K-TU for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 11:21:49 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:64327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R628q-000449-Qy for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 11:21:48 -0400 Received: by gwb19 with SMTP id 19so993064gwb.32 for ; Tue, 20 Sep 2011 08:21:48 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martyn Jago Cc: emacs-orgmode@gnu.org >> >> Footnotes: [1] ,---- >> | org-test-with-temp-text is a Lisp macro in `org-test.el'. >> | >> | (org-test-with-temp-text TEXT &rest BODY) >> | >> | Run body in a temporary buffer with Org-mode as the active >> | mode holding TEXT. If the string "" appears in TEXT >> | then remove it and place the point there before running BODY. >> `---- > > This looks useful, however I hit problems when refactoring my tests to > use it. Would it be easy for your macro to accept string variables in > addition to strings? > Hmm, that is weird. I've just pushed up a fix so this should now be solved. Thanks for the catch -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/