浏览代码

ob: Fix bug in using #+babel properties in fresh buffer

* lisp/ob.el (org-babel-params-from-buffer): Return desired value
rather than nil from failed re search.
Dan Davison 14 年之前
父节点
当前提交
775d962788
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob.el

+ 2 - 1
lisp/ob.el

@@ -893,7 +893,8 @@ may be specified in the current buffer."
 		    (org-babel-merge-params
 		     org-babel-current-buffer-properties
 		     (org-babel-parse-header-arguments
-		      (org-match-string-no-properties 2))))))))))
+		      (org-match-string-no-properties 2)))))
+	    org-babel-current-buffer-properties)))))
 
 (defvar org-src-preserve-indentation)
 (defun org-babel-parse-src-block-match ()