From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Post() evaluates but fails in export Date: Wed, 19 Feb 2014 17:24:16 +0200 Message-ID: <87ob23jfbz.fsf@syk.fi> References: <87txd1fy0m.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG90n-0000Jq-UR for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 10:24:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG90g-0006vF-Ie for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 10:24:37 -0500 Received: from plane.gmane.org ([80.91.229.3]:54645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG90g-0006tW-Bz for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 10:24:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WG90c-0005OW-Ln for emacs-orgmode@gnu.org; Wed, 19 Feb 2014 16:24:26 +0100 Received: from cs78160219.pp.htv.fi ([62.78.160.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Feb 2014 16:24:26 +0100 Received: from jarmo.hurri by cs78160219.pp.htv.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Feb 2014 16:24:26 +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: emacs-orgmode@gnu.org Hi again. Need to repost my own question (below), since there was no response to this. All the best, Jarmo > The following code evaluates just fine with C-c C-c, but fails during > export. This is with the newest org-mode just pulled and built. How do I > fix the issue? > > # ----------------------------------------------------------------------- > Here is a function I want to define (use below), but which I do not > want to export (neither code nor results). > #+name: foo > #+begin_src emacs-lisp :exports none :var bar="baz" > (concat "bar" bar) > #+end_src > > #+RESULTS: foo > : barbaz > > Here is a function that uses foo() defined above. This evaluates just > fine with C-c C-c, but fails in export. It fails both in ASCII export > (C-c C-e t a) and LaTeX export (C-c C-e l p). The error is > > org-babel-ref-resolve: Reference 'foo' not found in this buffer > > #+name: nofun > #+BEGIN_SRC emacs-lisp :exports results :post foo("nofun") > #+END_SRC > > #+RESULTS: nofun > : barnofun > # -----------------------------------------------------------------------