Rudolf Adamkovič <rud...@adamkovic.org> writes: > Compared to `main', I see the following test failing: > > - test-ob/demarcate-block-split-prefix-region > > Is that what you are seeing too?
Yes. > [I also see "14 skipped results" due to missing dependencies, but README > says nothing about how to fix those. The "Dependencies" section just > mentions ERT.] Org mode is skipping tests when you do not have software that is necessary to run those tests. For example, when you do not have java installed, ob-java tests will not run. > I spent 2 hours debugging the problem and think the failing test is not > correct, and possibly the code is not correct either. Why? > > The test creates a `src' block with the language set to `any-language'. > It passes with that fake language, but when I change it to something > real, such as `c' or `fundamental', the indentation is incorrect, and > the test fails. I can reproduce. The test is indeed not correct. src block in the test should not have "-i" flag. It is exactly what is making the test fail. (AFAIU) > I tracked it down as follows: `org-babel-demarcate-block' > > 1. calls `org-region-block' > 2. calls `org-indent-region', > 3. calls `org-edit-export-block' > 4. calls `org-babel-do-in-edit-buffer' > 5. calls `org-edit-src-code'. > > [I also wonder if we need exception handling around that call to > `org-edit-src-code', when there is no "No such language mode" error > going forward.] Could you please elaborate what you mean? -- 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>