emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Post() evaluates but fails in export
@ 2014-01-18  9:19 Jarmo Hurri
  2014-02-19 15:24 ` Jarmo Hurri
  0 siblings, 1 reply; 9+ messages in thread
From: Jarmo Hurri @ 2014-01-18  9:19 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-19 22:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-18  9:19 Post() evaluates but fails in export Jarmo Hurri
2014-02-19 15:24 ` Jarmo Hurri
2014-03-14  9:32   ` Bastien
2014-03-14 15:01   ` Nicolas Goaziou
2014-03-19 10:45     ` Bastien
2014-03-19 15:10       ` Nicolas Goaziou
2014-03-19 15:28         ` Bastien
2014-03-19 20:38           ` Nicolas Goaziou
2014-03-19 22:55             ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).