Hi,

On 2018-03-12 23:15, Nicolas Goaziou wrote:
The dollar character looks strange. What syntax is that?

I agree that it is strange. I mentioned it (and its strangeness) in the cover-letter. The documentation of org-sbe describes it as well.

+#+name: identity
+#+begin_src emacs-lisp :eval yes
+  x
+#+end_src"
+    (should (equal "a\"b\"c"
+                  (eval '(org-sbe identity (x $ "a\"b\"c")))))))

Why `eval'? Why not simply (org-sbe identity (x ...)) ?

Ah, I guess that's another "funny" thing about org-sbe that I forgot to mention. It is a macro, but it does some things that are rather non-macro-y. In this case, eval is required, otherwise it will attempt to parse the Org document during Lisp *compilation*, and you will see:

Eager macro-expansion failure: (error "Reference ‘identity’ not found in this buffer") Eager macro-expansion failure: (error "Reference ‘identity’ not found in this buffer")
Reference ‘identity’ not found in this buffer

--
Best regards,
 Vladimir

Reply via email to