>> There may be a better way to do it, but it seems to work. > > In this case, `org-babel-get-header' should be replaced with > `org-babel--get-vars', per ORG-NEWS. Thanks, it is much better. >> So my question is: could this be considered for a merge? The code does >> not seem to support sessions, I am not sure if that should be >> a blocker. > > It isn't a blocker, indeed. Could you send an updated patch? A set of > tests would be nice, too. I have updated the patch to use `org-babel--get-vars' as suggested. I also have replaced `org-babel-trim' by `org-trim' (as advised in ORG-NEWS) and replaced the `case' statement by a `pcase' (I used ob-python.el for reference). Please let me know if these changes are acceptable and if other changes are required. About the test, I am attaching my first attempt at this, please let me know if you have some advice on how to improve it or if you had something else in mind. This is the first time I use ert or org-test, but these seem to pass and test the basic features. By the way, when trying to run the tests from emacs, I had an error message when doing a (require 'org-test): "let: Required feature `ert-x' was not provided". Am I doing something wrong? I worked around it by (1) installing the `ertx' package and (2) replacing (require 'ert-x) by (require 'ertx) in org-test.el (that's probably the wrong thing to do, but it allowed me to run my tests). Thanks for your help. thibault