Eric Schulte <schulte.eric <at> gmail.com> writes: > > It is true that export takes place in a fresh Org-mode buffer, however > the header arguments of Org-mode code blocks are guaranteed to be > evaluated in the original buffer, so a trick like the following can be > used to grab the original buffer. > > #+begin_src emacs-lisp :var buf=(buffer-file-name (current-buffer)) :exports both > (message "buffer %S!" buf) > #+end_src >
That is exactly what I need. Thank you very much. -Luke