I have an org document with various source code blocks. Some of blocks should be evaluated conditionally on org-babel-execute-buffer
; however, these blocks are scattered throughout the document, which means I'm not able to set :eval no
under a single heading and call it a day.
I've attempted to do this via a property, but the following fails and both blocks are evaluated:
#+PROPERTY: maybe-eval no
#+BEGIN_SRC emacs-lisp :eval yes
(message "want this block evaluated")
#+END_SRC
#+BEGIN_SRC emacs-lisp :eval (org-entry-get nil "maybe-eval" t)
(message "don't want this block evaluated but to my chagrin it happens anyway")
#+END_SRC
Is it possible to use properties like this or is there another way to achieve the same behavior?