Greg Minshall writes: > hi. i just upgraded to > : Org mode version 9.4.4 (9.4.4-27-gb712b9-elpa @ > /home/minshall/.emacs.d/elpa/org-20210315/) > > and, have also just started playing with > (org-babel-map-inline-src-blocks), the documentation for which says > ---- > During evaluation of BODY the following local variables > are set relative to the currently matched code block. > ... > ----
Is there a specific error/misbehavior that you're seeing? The patch in this thread switched only one file, lisp/org-agenda.el, over to lexical binding. org-babel-map-inline-src-blocks is in ob-core, and that file has used lexical binding since 6cefae163 (ob-core: Use lexical binding, 2016-06-20). > but, iiuc, that relies on dynamic binding. so, as =lexical-binding= is > =t=, i don't have access to those appealing variables. org-babel-map-inline-src-blocks is a macro, and these variables are defined in its expansion. Try: (pp-macroexpand-expression '(org-babel-map-src-blocks nil (message "%d %s %s" beg-block lang body)))