From 9c1acbc667bdfa40c2b9e2580253b93b272e93d1 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Wed, 27 Oct 2010 16:30:04 +0100 Subject: [PATCH] babel: Fix regexp parsing of functional-style arguments * lisp/ob.el (org-babel-get-src-block-info): Retrieve contents of parentheses, excluding parentheses themselves --- lisp/ob.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ob.el b/lisp/ob.el index 814d5daf3..f039c3134 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -178,11 +178,11 @@ Returns a list (nth 2 info)))) (when (looking-at org-babel-src-name-w-name-regexp) (setq name (org-babel-clean-text-properties (match-string 4))) - (when (match-string 5) + (when (match-string 6) (setf (nth 2 info) ;; merge functional-syntax vars and header-args (org-babel-merge-params (mapcar (lambda (ref) (cons :var ref)) - (org-babel-ref-split-args (match-string 5))) + (org-babel-ref-split-args (match-string 6))) (nth 2 info)))))) ;; inline source block (when (save-excursion (re-search-backward "[ \f\t\n\r\v]" nil t) -- 2.11.4.GIT