浏览代码

ob-exp: Fix export error

* lisp/ob-exp.el (org-babel-exp-process-buffer): Fix error when
  `org-confirm-babel-evaluate' is set to a function.

Thanks to Charles C. Berry for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87403
Nicolas Goaziou 11 年之前
父节点
当前提交
c9a5ba09f1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/ob-exp.el

+ 3 - 1
lisp/ob-exp.el

@@ -187,7 +187,9 @@ may make them unreachable."
 			   (point)))))
 	      (case type
 		(inline-src-block
-		 (let* ((info (org-babel-parse-inline-src-block-match))
+		 (let* ((head (match-beginning 0))
+			(info (append (org-babel-parse-inline-src-block-match)
+				      (list nil nil head)))
 			(params (nth 2 info)))
 		   (setf (nth 1 info)
 			 (if (and (cdr (assoc :noweb params))