From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: ERT: body of org-test-with-temp-text-in-file Date: Sat, 15 Dec 2012 09:19:48 +0100 Message-ID: <87y5gzhgm3.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjmyM-0004oC-IL for emacs-orgmode@gnu.org; Sat, 15 Dec 2012 03:19:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjmyL-0007BX-JJ for emacs-orgmode@gnu.org; Sat, 15 Dec 2012 03:19:50 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:52489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjmyL-0007BR-DQ for emacs-orgmode@gnu.org; Sat, 15 Dec 2012 03:19:49 -0500 Received: by mail-we0-f169.google.com with SMTP id t49so1968591wey.0 for ; Sat, 15 Dec 2012 00:19:48 -0800 (PST) In-Reply-To: (Michael Brand's message of "Fri, 14 Dec 2012 15:05:55 +0100") 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: Michael Brand Cc: Org Mode Hi Michael, Michael Brand writes: > The doc of org-test-with-temp-text-in-file says > > (org-test-with-temp-text-in-file TEXT &rest BODY) > Run body in a temporary file buffer with Org-mode as the active mode. > > so I thought I can write: > > #+BEGIN_SRC emacs-lisp > (ert-deftest trial/fail () > (org-test-with-temp-text-in-file " > | | > " > (forward-line) > (should (org-at-table-p)))) > #+END_SRC Now you can. There were no real reason to force using (progn ...) here so I removed that and updated the test suite accordingly. Let me know if this works for you now. Best, -- Bastien