forked from mirrors/org-mode
ob-core.el: Fix behavior of lambda default header arg vars
* lisp/ob-core.el (org-babel-merge-params): Permit multiple :var default header arguments when using closures.
This commit is contained in:
parent
e0e016c1ae
commit
e8dd98d151
|
@ -2749,6 +2749,11 @@ parameters when merging lists."
|
|||
(pcase pair
|
||||
(`(:var . ,value)
|
||||
(let ((name (cond
|
||||
;; Default header arguments can accept lambda
|
||||
;; functions. We uniquely identify the var
|
||||
;; according to the full string contents of
|
||||
;; the lambda function.
|
||||
((functionp value) value)
|
||||
((listp value) (car value))
|
||||
((string-match "^\\([^= \f\t\n\r\v]+\\)[ \t]*=" value)
|
||||
(intern (match-string 1 value)))
|
||||
|
|
Loading…
Reference in a new issue