>>>>> Ihor Radchenko <[email protected]>:
> Steinar Bang <[email protected]> writes:
>> When I press TAB to toggle display of child elements in org files I
>> occasionally get the error message:
>> The error was: (error "Tab width in Org files must be 8, not 4. Please
>> adjust your ‘tab-width’ settings for Org mode")
>> ...
>> Message says to report this error, so I did.
>> BTW: (tab-width as checked with 'C-h v tab-width RET' was 4
> Thanks for reporting!
> Note that the error has been downgraded to warning in Org 9.7.29
> In any case, Org mode expects tab-width to use the default value of
> 8. This is part of the syntax. Something in your setup is changing this
> default. Any idea what it could be? (A suspect we do know about is
> editorconfig-mode)
Hi, I tried making a note in the old thread you and me had on this
subject just after I had reported this issue, but I couldn't find my
report.
It turned out this was the second time I had encountered this issue
where my emacs config collided with emacs 30 and org-mode and
editorconfig.el (it was the second time my git-cloned config collided
when upgrading from emacs 29 to 30 on different computers with some
months apart).
But to summarize:
1. There was an issue in org-mode
https://list.orgmode.org/orgmode/[email protected]/#r
2. There was also an issue in editorconfig in that editorconfig's
exclude config didn't exclude everything it should exclude
3. You have already fixed this issue in org-mode
https://list.orgmode.org/orgmode/87frj5qxr5.fsf@localhost/
https://github.com/bzg/org-mode/commit/0dc647ff54ba8a1e40d22237e2c095cb30905247
4. I have reported the editorconfig.el configuration issue
https://github.com/editorconfig/editorconfig-emacs/issues/377
5. The plain org-mode and editorconfig bundled with emacs 30.1 (which
does not have your fix above) does not have this issue (even with my
config) and removing MELPA versions and using the versions bundled
with emacs 30.1 also fixed the issue for me
https://github.com/editorconfig/editorconfig-emacs/issues/377#issuecomment-3353095082
Sorry about the noise created by the double reporting!