From: Tim Cross <firstname.lastname@example.org> To: Jean Louis <email@example.com> Cc: firstname.lastname@example.org Subject: Re: [POLL] Setting `org-adapt-indentation' to nil by default? Date: Mon, 03 May 2021 08:25:24 +1000 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <YI8JIzE/2m/X5VEt@protected.localdomain> Jean Louis <firstname.lastname@example.org> writes: > * Tim Cross <email@example.com> [2021-05-02 11:52]: >> >> Jean Louis <firstname.lastname@example.org> writes: >> >> > * Bastien <email@example.com> [2021-05-02 09:10]: >> >> Various discussions convinced me that `org-adapt-indentation' should >> >> be nil by default. >> >> >> >> With `electric-indent-mode' being activated by default in Emacs, the >> >> current behavior is that RET after a headline moves the point below >> >> the beginning of this headline, not the beginning of the line, which >> >> might surprise users. >> >> >> >> Indentation is quite sensitive: what do you think of setting a new >> >> default value of nil for `org-adapt-indentation' in Org 9.5? >> > >> > Yes, it should be nil just as it was in beginning. >> > >> > But there is one problem that I encountered since that was introduced, >> > namely I do like properties being indented under the first letter of >> > heading or on 3rd place. >> > >> > Like this below, however, C-c C-x p will create properties indented >> > only if org-adapt-indentation is t >> > >> > * Heading >> > :PROPERTIES: >> > :ARCHIVE: new >> > :END: >> > >> > But if org-adapt-indentation is nil, it will be like: >> > >> > * Heading >> > :PROPERTIES: >> > :ARCHIVE: new >> > :END: >> > >> > and I remember that behavior before the introduced change was that >> > properties were intended, which does look nicer for properties. >> > >> > But I definitely do not prefer cursor to come indentend after writing a header like: >> > >> > * Heading >> > C >> > ursor on C >> > >> > >> >> Sounds like you want the 'headline-data value for this variable. Please >> check the documentation. > > If I set `org-adapt-indent' to 'headline-data, I get that same > behavior that after pressing ENTER on headline line, position becomes > indentend. So it does not make it right. > > My favour was the behaviour how it was before introduction of > indentation change: > > - after headline, cursors went to beginning of line; I find it > usable, as that is where I write text. > > - if I ever wanted to enter properties with C-c C-x p, those were automatically > indented, > > But OK I can personally get used, especially that I these months avoid > using any properties in Org mode. > > > "GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.4, Xaw3d scroll bars) > of 2021-05-02" This is exactly what headline-data does. I suspect what your running into is electric-indent-mode and you need to turn it off to get the behaviour you want. So set org-adapt-indentation to hedline-data and turn off electric-indent-mode and you will get the indentation style you are after. The issue here isn't that org-adapt-indentation changed. The issue is that the effect of this setting changed when org mode was updated to be consistent with the rest of emacs and honour electric-indent-mode, which is enabled by default in emacs. Previously, org ignored this wider Emacs default setting. The poll is to decide if we should change this long standing default due to the side effects from enabling electric-indent-mode. Enabling electric-indent-mode was done to make org mode consistent with other Emacs modes, so disabling it by default would be inconsistent with Emacs defaults. I'm not sure the full impact of enabling electric-indent-mode was realised at the time. With org, I think the general principal is to try and have defaults set to the 'least surprising' value, particularly for new users. -- Tim Cross
next prev parent reply other threads:[~2021-05-02 22:39 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-02 6:09 Bastien 2021-05-02 7:13 ` Tim Cross 2021-05-02 8:06 ` Jean Louis 2021-05-02 8:47 ` Tim Cross 2021-05-02 20:18 ` Jean Louis 2021-05-02 22:25 ` Tim Cross [this message] 2021-05-03 7:41 ` Kévin Le Gouguec 2021-05-03 10:15 ` Jean Louis 2021-05-02 8:56 ` Bastien 2021-05-02 8:59 ` Bastien 2021-05-02 20:24 ` Jean Louis 2021-05-02 20:21 ` Jean Louis 2021-05-02 20:22 ` Jean Louis 2021-05-02 10:07 ` Eric S Fraga 2021-05-02 15:01 ` Detlef Steuer 2021-05-02 15:44 ` Colin Baxter 2021-05-02 15:46 ` Amin Bandali 2021-05-02 18:11 ` Tom Gillespie 2021-05-02 18:19 ` Nicolas Goaziou 2021-05-02 18:48 ` Tom Gillespie 2021-05-02 19:20 ` Nicolas Goaziou 2021-05-03 10:11 ` Dr. Arne Babenhauserheide 2021-05-02 18:31 ` Jim Porter 2021-05-02 20:44 ` Kévin Le Gouguec 2021-05-03 7:33 ` Kévin Le Gouguec 2021-05-03 8:06 ` Bastien 2021-05-03 12:53 ` Kévin Le Gouguec 2021-05-03 13:40 ` Bastien 2021-05-03 14:57 ` Kévin Le Gouguec 2021-05-06 14:50 ` Maxim Nikulin 2021-05-15 20:51 ` Bastien 2021-05-19 17:02 ` [PATCH] etc/ORG-NEWS: Suggest against disabling `electric-indent-mode' Maxim Nikulin 2021-05-20 12:25 ` Bastien 2021-05-19 17:08 ` [PATCH] org-faq.org: Expand "What is the best setup for indenting?" Maxim Nikulin 2021-05-19 18:06 ` Greg Minshall 2021-05-20 15:57 ` Maxim Nikulin 2021-05-21 2:45 ` Greg Minshall 2021-05-27 16:11 ` Maxim Nikulin 2021-05-21 9:38 ` Bastien 2021-05-20 12:28 ` Bastien 2021-05-19 17:08 ` [POLL] Setting `org-adapt-indentation' to nil by default? Maxim Nikulin 2021-05-02 21:07 ` Jack Kamm 2021-05-05 7:54 ` Bastien 2021-05-06 14:13 ` Bastien 2021-05-09 16:42 ` Kévin Le Gouguec 2021-05-15 12:46 ` Bastien
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 \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: [POLL] Setting `org-adapt-indentation'\'' to nil by default?' \ /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
Code repositories for project(s) associated with this 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 NNTP newsgroup(s).