emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] Inconsistent org-babel tangle behaviour


From: Ihor Radchenko
Subject: Re: [BUG] Inconsistent org-babel tangle behaviour
Date: Sun, 29 Dec 2024 08:42:37 +0000

Thibaut Meyer <thibaut@thibaut.dev> writes:

> I see. I just assumed that header arguments and switches were
> "recognized" and not considered as the language if placed positionally
> first.
>
>> Src block without language could indeed be tangled in your case.
>
> That would be indeed nice...
>
>> However, if the :tangle value is set to something like "yes", there is
>> no way or can deduce the tangle file name.
>
> .. but I guess that this prevents us from supporting this use case.

Not necessarily.
The reason why src blocks without language are not tangled is simply
because of the way I fixed
https://list.orgmode.org/orgmode/AS8P193MB241369D9F0701F57E293429288D3A@AS8P193MB2413.EURP193.PROD.OUTLOOK.COM/T/#u

I think that `org-babel-tangle-collect-blocks' can be changed to allow
tangling src blocks without language with explicitly provided tangle
target.

It might be a good exercise if you want to submit a patch.

-- 
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>



reply via email to

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