随 Emacs 29.4 一起分发的 Org 模式手册如下:
The following example makes all the R code blocks execute in the same
session. Setting ‘:results’ to ‘silent’ ignores the results of
executions for all blocks, not just R code blocks; no results inserted
for any block.
#+PROPERTY: header-args:R :session *R*
#+PROPERTY: header-args :results silent
但是,我写了一个组织模式文件:
#+PROPERTY: header-args :results silent
#+begin_src elisp
(print "Hello")
#+end_src
当我在块上运行
C-c C-c
时,结果会被打印出来!
#+RESULTS:
: Hello
为什么?
必须终止缓冲区然后重新打开才能使全局属性的更改生效。