I use Emacs 27.2 and Org 9.4.6. Since a very recent update of Org, I noticed a strange change in the behavior of indentation. In my init file, I have set the variable
'headline-data; and I don't use
org-indent-mode. Here is the (new?) behavior I noticed:
- Type some text which does not follow an empty line an hit
TAB: nothing happens (which is the expected behavior).
- Type some text which does follow an empty line an hit
TAB: this text gets indented according to the current headline level (why?).
Point 2. has an unpleasant side effect: when you still use the old template expansion mechanism for code blocks (the one provided by
org-tempo.el, e.g. type
<s and then hit
TAB to expand a full source code block), those code blocks now get indented according to the headline level (because of
TAB, I guess), which I'm sure was not the case until a very recent change.
The Org documentation for
org-adapt-indentation looks unclear to me, and I'm pretty sure that typing
<s TAB triggers both the template expansion and the (unwanted) code block indentation is not the expected behavior. Is it a bug, or am I missing something?