Guest User

Untitled

a guest
Apr 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #+NAME: add3
  2. #+BEGIN_SRC elisp :var num=0
  3. (+ 3 num)
  4. #+END_SRC
  5.  
  6. * Use the function in a drawer header arg
  7. :PROPERTIES:
  8. :header-args: :var n=add3(5)
  9. :END:
  10.  
  11. #+NAME: whatIsN
  12. #+BEGIN_SRC sh :var n=add3(5)
  13. echo $n
  14. #+END_SRC
  15.  
  16. #+RESULTS: whatIsN
  17. : 8
  18.  
  19. #+BEGIN_SRC sh :var a=whatIsN
  20. echo $a
  21. #+END_SRC
  22.  
  23. # !!!!ERROR!!!!: "variable binding depth exceeds max-specpdl-size"
  24.  
  25. #+NAME: whatIsN
  26. #+BEGIN_SRC sh :var n=add3(5)
  27. echo $n
  28. #+END_SRC
Add Comment
Please, Sign In to add comment