Amy Grinn <grinn....@gmail.com> writes: > Here is a simple way to implement this feature. > ... > -(defun org-babel-noweb-wrap (&optional regexp) > +(defun org-babel-noweb-wrap (&optional regexp info) > "Return regexp matching a Noweb reference. > > Match any reference, or only those matching REGEXP, if non-nil. > > When matching, reference is stored in match group 1."
INFO argument needs to be documented. > - (org-babel-noweb-wrap))))) > + (org-babel-noweb-wrap nil info))))) Please, also update all other cases when `org-babel-noweb-wrap' is called. Also, `org-babel-goto-named-src-block' uses org-babel-noweb-wrap-start/end directly. It should be adjusted. Since you are adding a new feature, it should have (1) test coverage; (2) be documented in the manual; (3) be announced in etc/ORG-NEWS. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>