emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] :eval header argument ignored in the #+call: block
@ 2012-01-20 14:44 Leo Alekseyev
  2012-01-20 18:46 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Alekseyev @ 2012-01-20 14:44 UTC (permalink / raw)
  To: Emacs orgmode

Suppose I have a code block foo, and I want to call it several times
in my org file.  However, foo may be a slow function, and so any time
I evaluate buffer non-interactively (e.g. HTML export) I want to
enable only one out of many calls to :foo

The following doesn't work, but I think it should, since the #+call:
line should run foo with the header argument :eval no-export

#+NAME: foo
#+BEGIN_SRC R :var turn_on_output="FALSE"
if(turn_on_output) { X11() }
#+END_SRC

#+CALL: foo[:eval no-export](turn_on_output="TRUE")  ## this STILL
evaluates on export

Furthermore, a better solution to the situation I described above
might be to set the :eval no-export header argument in the source
block definition, and then over-ride it in the one #+call line that I
want to run during export.  Unfortunately, it doesn't seem that this
is currently possible.

--Leo

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

end of thread, other threads:[~2012-01-20 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-20 14:44 [bug] :eval header argument ignored in the #+call: block Leo Alekseyev
2012-01-20 18:46 ` Eric Schulte

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).