From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Post() evaluates but fails in export Date: Sat, 18 Jan 2014 11:19:05 +0200 Message-ID: <87txd1fy0m.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4S3y-0004LK-GW for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 04:19:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4S3m-0007iL-60 for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 04:19:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:41750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4S3l-0007iC-VG for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 04:19:22 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W4S3h-0005SO-TK for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 10:19:17 +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 ; Sat, 18 Jan 2014 10:19:17 +0100 Received: from jarmo.hurri by cs78160219.pp.htv.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jan 2014 10:19:17 +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 Greetings. 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 # ----------------------------------------------------------------------- All the best, Jarmo