From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: How to ensure code blocks are run during export? Date: Fri, 03 May 2013 11:57:22 +0200 Message-ID: References: <86bo8sbggr.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYCk4-0003pD-Fa for emacs-orgmode@gnu.org; Fri, 03 May 2013 05:57:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYCk2-00073u-89 for emacs-orgmode@gnu.org; Fri, 03 May 2013 05:57:28 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYCk1-00072o-6y for emacs-orgmode@gnu.org; Fri, 03 May 2013 05:57:26 -0400 In-reply-to: <86bo8sbggr.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org Sebastien Vauban writes: > Alan, > > Alan Schmitt wrote: >> I'm writing an exam in org mode, and it's going really well. I need to >> have some code in code blocks being run during export (as it's defining >> some functions for later questions), but I don't want anything to be >> displayed in the final document. At the moment I use the following >> options in the block: >> >> :results silent :exports results >> >> Is it the correct way to do it? > > It works, but a better way'd simply be ":exports none". I tried, and this does not run the code block (I see errors for later code blocks that depend on it, and there is no mention of running that code block in the log). Alan