emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG in org master?]


From: Tim Cross
Subject: Re: [BUG in org master?]
Date: Sat, 23 Oct 2021 09:36:20 +1100
User-agent: mu4e 1.6.7; emacs 27.2

Uwe Brauer <oub@mat.ucm.es> writes:

> [[S/MIME Signed Part:Undecided]]
>
>> Uwe Brauer <oub@mat.ucm.es> writes:
>
>
>> What is the setting for electric-indent-mode in the org buffer?
>
> ,----
> | electric-indent-mode is a variable defined in ‘electric.el’.
> | 
> | Its value is nil
> | Original value was t
> `----
>
> Not sure why its original value was t, I don't remember to have used
> that, but I might be mistaken.
>
>
Electric indent mode was set to t in emacs 26 or 25. At the time, org
did not honour the setting of electric indent mode. A lot of the
confusion around changes to indentation and org-adapt-indentation has
arisen due to changes in org mode to make it compatible with other emacs
modes i.e. make it honour the setting of electric-indent-mode. While
I think this was the right move for the long-term as it makes org mode
behave like other modes, I don't think the impact from this change was
fully understood at the time. This has led to considerable confusion and
changes in default settings for org-adapt-indentation to reduce the
friction for users. While the outcome has likely made org mode more
consistent for new users, it has caused some issues for existing users
and it may take some time for the shock waves to dissipate.  
>
>> Also, does org-lint give any warnings about your org file?
>
> No, I just checked.
>
>> The effect of org-adapt-indentation is somewhat confusing to say the
>> least. The effect of that setting is also dependent on the setting for
>> electric-indent-mode. Getting the desired result often depends on having
>> the right setting for both that variable and electric-indent-mode. I've
>> also found that in some cases, if there are errors in your org file (as
>> found by org-lint) then everything can go a bit weird as well.
>
> Very odd, maybe I will turn org-indent-mode on just in this buffer.
>
>

There has been a number of threads about this and org-adapt-indentation
over the last 12 months or so. You might find some help looking through
some of those threads. 



reply via email to

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