Reputation: 262
The manual for Org Mode distributed with Emacs 29.4 reads:
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
However, I write an org mode file:
#+PROPERTY: header-args :results silent
#+begin_src elisp
(print "Hello")
#+end_src
And when I run C-c C-c
on the block, results are printed!
#+RESULTS:
: Hello
Why?
Upvotes: 1
Views: 41
Reputation: 262
The buffer must be killed then reopened for changes in global properties to take effect. Just a M-x revert-buffer
will work too.
Upvotes: 1