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:
Matt Huszagh 2022-06-27 20:41:02 -07:00 committed by Ihor Radchenko
parent e0e016c1ae
commit e8dd98d151
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -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)))