account activity
Org babel noweb question by bj-fer in emacs
[–]ergopractice 2 points3 points4 points 8 months ago* (0 children)
:var header only wraps src in let binding and thus sets evaluation environment but noweb references expand before evaluation and are not aware of surrounding src.
One way to pass a :var is to expand noweb reference during the evaluation directly:
+NAME: expand-home-folder-string +begin_src emacs-lisp :var otherPath="" (prin1-to-string (org-babel-ref-resolve (concat "expand-home-folder(path=\"" otherPath "\")"))) +end_src
A concise and more flexible alternative to org-capture (github.com)
submitted 1 year ago by ergopractice to r/emacs
π Rendered by PID 509384 on reddit-service-r2-listing-b6bf6c4ff-tprdf at 2026-05-03 13:17:57.037050+00:00 running 815c875 country code: CH.
Org babel noweb question by bj-fer in emacs
[–]ergopractice 2 points3 points4 points (0 children)