Amy Grinn writes:
>> +1
>> You may even use obsolete alias (add it to lisp/org-compat.el)
>
> Here's a patch to rename org-babel-noweb-wrap to
> org-babel-noweb-make-regexp.
Thanks!
News entry is not necessary here - we are just renaming a function.
Otherwise, the patch looks good.
I am not yet
Ihor Radchenko writes:
> Amy Grinn writes:
>
>> First of all, I would like to change (defalias) the function name
>> org-babel-noweb-wrap to org-babel-noweb-make-regexp. I think this in
>> more in line with other functions which create regular expressions.
>
> +1
> You may even use obsolete
Amy Grinn writes:
>>> +(while (< (point) (point-max))
>>> + (unless (looking-at " *\"\\([^\"]+\\)\" *")
>>> +(looking-at " *\\([^ ]+\\)"))
>>
>> May you please explain the rationale behind this regexp? AFAIU, it
>> implies that you want to allow whitespace characters
Ihor Radchenko writes:
> Amy Grinn writes:
>
>> +(insert raw)
>> +(goto-char (point-min))
>> +(while (< (point) (point-max))
>> + (unless (looking-at " *\"\\([^\"]+\\)\" *")
>> +(looking-at " *\\([^ ]+\\)"))
>
> May you please explain the rationale
Amy Grinn writes:
> First of all, I would like to change (defalias) the function name
> org-babel-noweb-wrap to org-babel-noweb-make-regexp. I think this in
> more in line with other functions which create regular expressions.
+1
You may even use obsolete alias (add it to lisp/org-compat.el)
>
Hi!
I'm working on the :noweb-wrap header argument which controls the syntax
of noweb references in a babel src block. For example:
#+name: foo
#+begin_src elisp
:foo
#+end_src
#+begin_src elisp :noweb yes :noweb-wrap <<< >>>
<<>>
#+end_src
And I would like some feedback...
First of all,