Often, it is preferrable to eval-defun (C-M-x) with point inside the src block rather than move point to the src block boundary and org-ctrl-c-ctrl-c (C-c C-c). However, currently eval-defun in the indirect buffer does not respect lexical-binding which makes eval-defun unusable e.g. whenever closures are used. The patch conveys the :lexical t src block parameter in blocks with mode derived from emacs-lisp-mode.
Often, it is preferrable to
eval-defun
(C-M-x
) with point inside the src block rather than move point to the src block boundary andorg-ctrl-c-ctrl-c
(C-c C-c
). However, currentlyeval-defun
in the indirect buffer does not respectlexical-binding
which makeseval-defun
unusable e.g. whenever closures are used. The patch conveys the:lexical t
src block parameter in blocks with mode derived fromemacs-lisp-mode
.