summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2011-02-12 15:27:16 +0000
committerDan Davison <dandavison7@gmail.com>2011-02-12 15:29:07 +0000
commit775d962788c6105dc3ba71722b497d1293b53ce4 (patch)
tree1f651e5992d28dff358f5ab93920b79c350e54b1
parent3b77c7ed573381a10383dffc500311991bb89a53 (diff)
downloadorg-mode-775d962788c6105dc3ba71722b497d1293b53ce4.tar.gz
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.
-rw-r--r--lisp/ob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index afd30d3..7b9bd60 100644
--- a/lisp/ob.el
+++ b/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 ()