任何人都可以举出使用该sbe
功能的例子ob-table.el
吗?我一定遗漏了一些东西,因为我无法让它与直接的 elisp 一起工作。
#+name: add1(x=1) :results silent
#+begin_src python
return x + 1
#+end_src
这有效:
| 1 | 2 | 3 | 4 |
#+TBLFM: @1$4='(sbe add1 (x $3))
但这不会:
#+begin_src emacs-lisp
(sbe add1 (x 2))
#+end_src
错误:错误的类型参数:sequencep,2
将 2 更改为列表只会进一步加剧它:
#+begin_src emacs-lisp
(sbe add1 (x (list 2))
#+end_src
错误:错误的类型参数:buffer-or-string-p, 2