Re: [PATCH] ob-tangle: source blocks without language can be tangled (was: [BUG] Inconsistent org-babel tangle behaviour)

2025-01-01 Thread Ihor Radchenko
Thibaut Meyer writes: > Here is my attempt. Modifying the regex in ob-core.el felt scary, but > it seems fine since this didn't break any tests and manually testing the > new regex seemed to work fine. I've added the small change to the > documentation as you suggested as I think it clarifies thi

[PATCH] ob-tangle: source blocks without language can be tangled (was: [BUG] Inconsistent org-babel tangle behaviour)

2024-12-31 Thread General discussions about Org-mode.
* lisp/ob-tangle.el: (org-babel-tangle-collect-blocks): source blocks without a language are not not ignored anymore, if they inherit a src-tfile other than "yes" or "no". * lisp/ob-core.el: adapts the org-babel-src-block-regexp regular expression to make the language part of a source block optiona

Re: [BUG] Inconsistent org-babel tangle behaviour

2024-12-29 Thread Ihor Radchenko
Thibaut Meyer 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 :tang

Re: [BUG] Inconsistent org-babel tangle behaviour

2024-12-28 Thread General discussions about Org-mode.
> Here, a language is actually specified. The language is ":tangle" (there > is nothing stopping anyone from creating a language name starting from > colon). I see. I just assumed that header arguments and switches were "recognized" and not considered as the language if placed positionally first

Re: [BUG] Inconsistent org-babel tangle behaviour

2024-12-22 Thread Ihor Radchenko
Thibaut Meyer via "General discussions about Org-mode." writes: > setting a property in an org file like > > '#+PROPERTY: header-args:tangle "file.ext"' > > with a source block of the form: > (note no language is specified for the block) > > #+begin_src > <1: this block won't get tangled> > #

[BUG] Inconsistent org-babel tangle behaviour

2024-12-11 Thread General discussions about Org-mode.
Hi everyone, setting a property in an org file like '#+PROPERTY: header-args:tangle "file.ext"' with a source block of the form: (note no language is specified for the block) #+begin_src <1: this block won't get tangled> #+end_src won't tangle the block Adding any string as a language to