emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments


From: Sébastien Miquel
Subject: Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments
Date: Sat, 30 Apr 2022 07:35:29 +0000


Ihor Radchenko writes:
#+name: documentation
This is a sample function documentation.
Because there are "quotes", it must be escaped and cannot be directly
used as noweb-reference.

#+name: doc-escape
#+begin_src emacs-lisp :var str="" :tangle no
(prin1-to-string (string-trim-right str))
#+end_src

#+begin_src emacs-lisp :tangle yes
(defun test ()
<<doc-escape(str=documentation)>>
t)
#+end_src

Nice ! Quite obscure and brittle (doesn't work if documentation is a text src block) but I can use it nonetheless.

Other than :noweb-trans, the patch looks good for me.
Here's a patch with only the :noweb-prefix part. If applied, we can mark this thread resolved.

Thanks,

--
Sébastien Miquel

Attachment: 0001-ob-core.el-Add-noweb-prefix-babel-header-argument.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]