소스 검색

ob-exp: ensure params are properly processed on export

* lisp/ob-exp.el (org-babel-exp-results): Ensure that processed params
  are send to org-babel-execute-src-block.
Eric Schulte 14 년 전
부모
커밋
3755c79485
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      lisp/ob-exp.el

+ 5 - 5
lisp/ob-exp.el

@@ -252,16 +252,16 @@ inhibit insertion of results into the buffer."
 				(org-babel-result-hash)))))
     (let ((lang (nth 0 info))
 	  (body (nth 1 info)))
-      (setf (nth 2 info) (org-babel-exp-in-export-file lang
-			   (org-babel-process-params (nth 2 info))))
       ;; skip code blocks which we can't evaluate
       (when (fboundp (intern (concat "org-babel-execute:" lang)))
 	(org-babel-eval-wipe-error-buffer)
 	(prog1 nil
 	  (setf (nth 2 info)
-		(org-babel-merge-params
-		 (nth 2 info)
-		 `((:results . ,(if silent "silent" "replace")))))
+		(org-babel-exp-in-export-file lang
+		  (org-babel-process-params
+		   (org-babel-merge-params
+		    (nth 2 info)
+		    `((:results . ,(if silent "silent" "replace")))))))
 	  (cond
 	   ((or (equal type 'block) (equal type 'inline))
 	    (org-babel-execute-src-block nil info))