From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Babel CALL no longer produces HTML output Date: Sat, 23 Jul 2016 15:14:47 +0300 Message-ID: <87r3akzh3c.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQvpj-0007fK-MU for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 08:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQvpe-0002Hb-N2 for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 08:15:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:34452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQvpe-0002HS-G6 for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 08:15:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bQvpd-0000gQ-D1 for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 14:15:01 +0200 Received: from 82-181-168-52.bb.dnainternet.fi ([82.181.168.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jul 2016 14:15:01 +0200 Received: from jarmo.hurri by 82-181-168-52.bb.dnainternet.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jul 2016 14:15:01 +0200 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" To: emacs-orgmode@gnu.org Greetings. The Org example below used to work correctly when exported as HTML until I pulled a newer version of Org from git. I am first going to include the example here, and then explain the reasoning behind its structure. ======================================================================= * Example This call here produced HTML output when exported as HTML until the newer versions of Org. Now it produces no HTML output whatsoever. #+CALL: rekursio-pystyviivat[:noweb yes]() :results html The following code blocks still work as expected. #+NAME: rekursio-pystyviivat-runko #+BEGIN_SRC processing :exports none if (viivoja == 0) return; line (x, 0, x, korkeus); piirraPystyviivat (viivoja - 1, x + 10, 0.9 * korkeus); #+END_SRC #+NAME: rekursio-pystyviivat #+BEGIN_SRC processing :exports code :noweb no void piirraPystyviivat (int viivoja, float x, float korkeus) { <> } void setup () { size (600, 400); noLoop (); } void draw () { piirraPystyviivat (50, 10, 350); } #+END_SRC ======================================================================= In the example above I am playing with noweb to produce the following _excellent_ teaching effect: - the last Babel code block is what a student sees - the student is supposed to replace <> with correct code, in this case the body of a recursive function - the last block has ":noweb no" so that the missing part is not replaced by the correct solution - in the CALL, however, noweb is set to yes so that noweb replacement is done, and the first block produces the correct output (in the case of Processing language, this is a picture) I use this structure quite a bit in my material, which is finished except for layout formatting. So I am going to be in trouble if I can no longer get the logic to work in Org. Jarmo