I want to execute selected source blocks in the active buffer. For example for the following org-mode file,
#+NAME: snippet1
#+BEGIN_SRC emacs-lisp
(message "snippet 1")
#+END_SRC
#+NAME: snippet2
#+BEGIN_SRC emacs-lisp
(message "snippet 2")
#+END_SRC
I can use
(org-babel-execute-buffer)
to execute both blocks from elisp, but how can I execute snippet1 without executing snippet2?
I found the following related functions that might help.
org-babel-get-src-block-info
org-babel-execute-src-block
Any pointers to relevant documentation is very much appreciated.