emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Max Nikulin
Subject: bug#51167: 29.0.50; org-indent-line broken
Date: Sun, 17 Oct 2021 22:19:59 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

close 51167
quit

On 17/10/2021 03:02, Andreas Röhler wrote:
On 13.10.21 14:59, Max Nikulin wrote:
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)

Thanks. That works for me.

So it is not a bug.

Still thinking a command "indent" should indent.

Such settings are not the best choice for defaults. They are not friendly to
- New users who do not press TAB after each RET, so they later get inconsistent indentation after promoting/demoting/refiling headings. - Users who write long documents where convenience of indented paragraphs is disputed. Likely org-indent is better to get visual indent without adding spaces in front of every line - VCS because of promoting or demoting headings results in overblown patches.

I do not think that behavior of TAB in Org is deviates from major modes. (Side note: sometimes I do not mind to have indent accordingly to my taste even if it is not conventional one for particular structure.)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]