Skip to main content
replaced http://emacs.stackexchange.com/ with https://emacs.stackexchange.com/
Source Link

This is tangentially related to my previous question on dealing with asynchronous babel scriptsdealing with asynchronous babel scripts. Currently I have to manually specify the name of the src block the babel function is in:

#+name: elisp-block-name #+begin_src emacs-lisp :var src="elisp-block-name" (format "My src-block is %s" src) #+end_src #+RESULTS: elisp-block-name : My src-block is elisp-block-name 

Obviously this is prone to error so it would be nice to generate it programmaticaly. Is there any environment/variables always passed to tangled block that indicates this or do I need to just call some elisp for my :var block?

This is tangentially related to my previous question on dealing with asynchronous babel scripts. Currently I have to manually specify the name of the src block the babel function is in:

#+name: elisp-block-name #+begin_src emacs-lisp :var src="elisp-block-name" (format "My src-block is %s" src) #+end_src #+RESULTS: elisp-block-name : My src-block is elisp-block-name 

Obviously this is prone to error so it would be nice to generate it programmaticaly. Is there any environment/variables always passed to tangled block that indicates this or do I need to just call some elisp for my :var block?

This is tangentially related to my previous question on dealing with asynchronous babel scripts. Currently I have to manually specify the name of the src block the babel function is in:

#+name: elisp-block-name #+begin_src emacs-lisp :var src="elisp-block-name" (format "My src-block is %s" src) #+end_src #+RESULTS: elisp-block-name : My src-block is elisp-block-name 

Obviously this is prone to error so it would be nice to generate it programmaticaly. Is there any environment/variables always passed to tangled block that indicates this or do I need to just call some elisp for my :var block?

Source Link
stsquad
  • 4.7k
  • 32
  • 46

Referring to the org-babel src block name from within the script

This is tangentially related to my previous question on dealing with asynchronous babel scripts. Currently I have to manually specify the name of the src block the babel function is in:

#+name: elisp-block-name #+begin_src emacs-lisp :var src="elisp-block-name" (format "My src-block is %s" src) #+end_src #+RESULTS: elisp-block-name : My src-block is elisp-block-name 

Obviously this is prone to error so it would be nice to generate it programmaticaly. Is there any environment/variables always passed to tangled block that indicates this or do I need to just call some elisp for my :var block?