From: Tim Cross <theophilusx@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG in org master?]
Date: Sat, 23 Oct 2021 09:36:20 +1100 [thread overview]
Message-ID: <m2r1cc1xw9.fsf@blind-drunk.fritz.box> (raw)
In-Reply-To: <87wnm52f41.fsf@mat.ucm.es>
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.
next prev parent reply other threads:[~2021-10-22 22:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-21 14:52 how to indent (or refill) properties Uwe Brauer
2021-10-21 17:48 ` Kévin Le Gouguec
2021-10-22 6:31 ` [BUG in org master?] (was: how to indent (or refill) properties) Uwe Brauer
2021-10-22 13:55 ` Tim Cross
2021-10-22 16:14 ` [BUG in org master?] Kévin Le Gouguec
2021-10-22 16:34 ` Uwe Brauer
2021-10-22 22:36 ` Tim Cross [this message]
2021-10-22 15:50 ` Kévin Le Gouguec
2021-10-23 6:38 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r1cc1xw9.fsf@blind-drunk.fritz.box \
--to=theophilusx@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).