为什么 Emacs 的 Org 模式的 Babel 缓冲区范围标头参数在这个简单的示例中不起作用?

问题描述 投票:0回答:1

随 Emacs 29.4 一起分发的 Org 模式手册如下:

   The following example makes all the R code blocks execute in the same
session.  Setting ‘:resultstosilentignores 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

为什么?

emacs org-mode org-babel
1个回答
0
投票

必须终止缓冲区然后重新打开才能使全局属性的更改生效。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.