소스 검색

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 년 전
부모
커밋
8b327f2a77
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lisp/ob.el

+ 2 - 1
lisp/ob.el

@@ -168,7 +168,8 @@ added to the header-arguments-alist."
 			  (append info (list
 					(mapcar
 					 (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
 		  (setf (nth 2 info)
 			(org-babel-merge-params (nth 5 info) (nth 2 info)))))