branch: externals-release/org
commit cedc089b715de918cbbe9fba8b233d419eb39233
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
ob-emacs-lisp: Accept :lexical t with t being a symbol
* lisp/ob-emacs-lisp.el (org-babel-emacs-lisp-lexical): Allow value of
:lexical header argument to be `t', in addition to "t". This is to be
consistent with the manual.
Reported-by: [email protected]
Link:
https://orgmode.org/list/[email protected]
---
lisp/ob-emacs-lisp.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ob-emacs-lisp.el b/lisp/ob-emacs-lisp.el
index dfdd65ae27..416f861850 100644
--- a/lisp/ob-emacs-lisp.el
+++ b/lisp/ob-emacs-lisp.el
@@ -97,7 +97,7 @@ Convert LEXICAL into the form appropriate for
`lexical-binding'
and the LEXICAL argument to `eval'."
(if (listp lexical)
lexical
- (not (null (member lexical '("yes" "t"))))))
+ (not (null (member lexical '("yes" "t" t))))))
(defun org-babel-edit-prep:emacs-lisp (info)
"Set `lexical-binding' in Org edit buffer.