Subject: Re: bug#51167: 29.0.50; org-indent-line broken

From: Max Nikulin <[email-masked]>
Date: Wed, 13 Oct 2021 19:59:42 +0700

On 13/10/2021 01:35, Kévin Le Gouguec wrote:
> Andreas Röhler writes:
> 
>> With following stuff in org-mode buffer:
>>
>> * bla
>> asd
>>
>> M-x org-indent-line RET on second line has no effect.

Andreas, do the following settings make behavior consistent with you 
expectations?

(add-hook 'org-mode-hook (lambda () (electric-indent-local-mode -1)))
(setq org-adapt-indentation t)

Have in mind that TAB is a rather busy key in Org. Besides indentation 
it is used for fold-reveal cycle for headings, list items, drawers, 
source code blocks and examples.

On 13/10/2021 14:34, Kévin Le Gouguec wrote:
> Or are you saying you would like org-indent-line to also indent "* bla",
> because « a command called "indent-line definitely should indent »?

* Is a heading

   * List item.
     Another line of list item
*
#^---

TAB indents here. However there is no zero indent in the cycle and it 
might be considered as a bug.

On 13/10/2021 13:47, Andreas Röhler wrote:
> Maybe make RET RET again?

Now I am confused if TAB or RET makes you unhappy. `org-indent-line' has 
closer relations with TAB than with RET.