#+Title: foo A buffer in which we want =foo= to be run when called interactively from /any/ call line, but to only be run by a single call line on export. Ensure this works by executing this buffer to html while tracking =foo-called.times= with =tail -f /tmp/foo-called.times=. #+NAME: foo #+BEGIN_SRC sh :var id="foo" echo "called by $id at $(date +%s.%N)" |tee -a /tmp/foo-called.times #+END_SRC This will *not* be run on export. #+call: foo[:eval no-export]("bar") This *will* be run on export. #+call: foo("baz")