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: Andreas Röhler
Subject: bug#51167: 29.0.50; org-indent-line broken
Date: Wed, 13 Oct 2021 08:47:16 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.14.0


On 12.10.21 20:35, Kévin Le Gouguec wrote:
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

With following stuff in org-mode buffer:

* bla
asd

M-x org-indent-line RET on second line has no effect.
Org 9.5 changed the default value of org-adapt-indentation from t to
nil, as that seemed to be what a lot of users expect[1], so
org-indent-line should not indent the second line in Emacs 28 onward
unless configured otherwise:

- setting org-adapt-indentation back to t will make Org indent by
   inserting whitespace;

- alternatively, enabling org-indent-mode will make Org "soft-indent"
   with text properties.


[1] Org 9.4 made RET and C-j obey electric-indent-mode like they do in
     most other major modes.  Since org-adapt-indentation was t by
     default, this led to many dismayed reports on emacs-orgmode that
     "RET now messes up indentation", indicating that these users did not
     expect their prose to be indented.


Sounds like a chain of confusion.

A command called "indent-line" definitely should indent.

Seems the original coulprit is that unhappy switch of RET and C-j, in order to make Emacs "modern".

Maybe make RET RET again?








reply via email to

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