Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> May you create a test for this with expected failure? > > Sure! Here is one: > > (should > (equal "{B}" > (org-test-with-temp-text > "src_lua{return string.match('A {B} C', '%b{}')}" > (org-babel-execute-src-block)))) > > The return value from 'string.match' is the substring "{B}", which Babel > misjudges to be a list and signals the error: > > (user-error "Inline error: list result cannot be used") Maybe something like the attached. (I am a casual lua user, so better double check)