|
From: | Vladimir Panteleev |
Subject: | Re: [O] [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments |
Date: | Tue, 13 Mar 2018 19:16:57 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |