[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FR] :noweb-wrap header arg
From: |
Ihor Radchenko |
Subject: |
Re: [FR] :noweb-wrap header arg |
Date: |
Sun, 08 Dec 2024 10:20:53 +0000 |
Ihor Radchenko <yantar92@posteo.net> writes:
> Amy Grinn <grinn.amy@gmail.com> writes:
>
>>> I recommend the following:
>>>
>>> If the value starts from ", use Elisp's `read':
>>> |"# <<" ">>"
>>> (read (current-buffer)) ; => "# <<"
>>> otherwise, consider read until the first whitespace.
>>> |#<<; >>;
>>> (re-search-forward (rx (1+ (not whitespace))))
>>> #<<;|
>>>
>>> However, there may be edge cases like
> ...
Thinking about this more in the context of the past meetup discussion,
maybe we can just go with two header arguments? :noweb-start :noweb-end?
Or, alternatively, we can use a single string and a placeholder for the
noweb reference name. Something like :noweb-wrap "# <<%s>>"
--
Ihor Radchenko // yantar92,
Org mode maintainer,
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>
- Re: [FR] :noweb-wrap header arg,
Ihor Radchenko <=