Browse Source

babel: Fix bug in `org-babel-get-src-block-info'

	* ob.el (org-babel-get-src-block-info): Form info list
	correctly when parenthesised arguments are missing
Dan Davison 14 years ago
parent
commit
8b327f2a77
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ob.el

+ 2 - 1
lisp/ob.el

@@ -168,7 +168,8 @@ added to the header-arguments-alist."
 			  (append info (list
 			  (append info (list
 					(mapcar
 					(mapcar
 					 (lambda (ref) (cons :var ref))
 					 (lambda (ref) (cons :var ref))
-					 (org-babel-ref-split-args args))))))
+					 (org-babel-ref-split-args args)))))
+		  (setq info (append info (list nil))))
 		(unless header-vars-only
 		(unless header-vars-only
 		  (setf (nth 2 info)
 		  (setf (nth 2 info)
 			(org-babel-merge-params (nth 5 info) (nth 2 info)))))
 			(org-babel-merge-params (nth 5 info) (nth 2 info)))))