Browse Source

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.
Eric Schulte 14 years ago
parent
commit
c6b81ca3a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-exp.el

+ 1 - 1
lisp/ob-exp.el

@@ -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"))