Ensure params are incorporated *before* checking if evaluation is legal

* lisp/ob.el (org-babel-execute-src-block): Ensure params are
  incorporated *before* checking if evaluation is legal.
This commit is contained in:
Eric Schulte 2012-01-20 11:44:12 -07:00
parent 5a0bf5e7d1
commit 97e8e03eea
1 changed files with 4 additions and 1 deletions

View File

@ -476,7 +476,10 @@ the header arguments specified at the front of the source code
block."
(interactive)
(let ((info (or info (org-babel-get-src-block-info))))
(when (org-babel-confirm-evaluate info)
(when (org-babel-confirm-evaluate
(let ((i info))
(setf (nth 2 i) (org-babel-merge-params (nth 2 info) params))
i))
(let* ((lang (nth 0 info))
(params (if params
(org-babel-process-params