ob-exp: no longer requires :session to have an argument for eval on export

* lisp/ob-exp.el (org-babel-exp-do-export): Now runs for empty
  :session arguments.
This commit is contained in:
Eric Schulte 2011-03-15 07:12:25 -06:00
parent f8c627a44b
commit c6b81ca3a1
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ options are taken from `org-babel-default-header-args'."
"Return a string with the exported content of a code block.
The function respects the value of the :exports header argument."
(flet ((silently () (let ((session (cdr (assoc :session (nth 2 info)))))
(when (and session (not (equal "none" session)))
(when (not (and session (equal "none" session)))
(org-babel-exp-results info type 'silent))))
(clean () (unless (eq type 'inline) (org-babel-remove-result info))))
(case (intern (or (cdr (assoc :exports (nth 2 info))) "code"))