For a start, you are quoting the call to org-babel-get-src-block-info
, so the function is never called. Second, you probably want to change the test function to something like this:
(defun test()
(let ((args (org-babel-get-src-block-info)))
args))
until you understand what the call to org-babel-get-src-block-info
returns. In fact, it would be a good idea to try doing M-: (org-babel-get-src-block-info) RET
, so you can see clearly what the function returns. Third, babel has strange ideas about what to do with the output. In this particular case, you might want to set :results raw
(despite the disadvantage that you have to delete the results by hand every time), so as to avoid the strange interpretation.
elisp
for questions about how to use Elisp. It's for questions about the nature of the language, compared to other languages, in particular other Lisp dialects. Thx.