-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default for org-adapt-indentation has changed in Org 9.5 #884
Comments
I guess because I just got the case again where a new colleague messed up whitespaces in our shared org files with organice. @munen Is it alright when we catch up with org-mode now, and set the default to |
Hi @schoettl, I'm in favor of configuring defaults in the organice settings the same as for Emacs Org mode. It is my understanding from https://orgmode.org/Changes.html that the default is Still, I understand your use-case. You want all team members to conform to the same defaults. Maybe we could add a new feature 'team profile'. I'm just thinking aloud here. It could be a link to a remote What do you think? Kind regards, |
I think this is a misunderstanding:
So my understanding is that these options are inverted in Org and organice. Regarding the |
I think this is a misunderstanding:
* if org-adapt-indentation is t, the indentation level is adapted. But it's no nil by default.
* if shouldNotIndentOnExport is true, it does not adapt the indentation level.
So my understanding is that these options are inverted in Org and organice.
You are correct! My apologies for not reading it properly through.
Now that I understand it, and have tested the setting in Emacs and organice and have a follow-up question: Setting the flag in Emacs has a different effect than in organice. The reason is that organice parses an Org file on startup and later transforms the internal representation back to an Org file. Hence, setting the flag in Emacs will result in a change only for future headlines, leaving the indentation the same for all existing headlines. Whereas making the switch in organice will re-indent all files for all users who haven't explicitly set the setting before. Since it will affect most users and create big diffs, I would say this is a regression. If we invert the meaning of the flag (and align it with Emacs) and set the default to `false`, we won't have this regression, correct?
As for the PR, I see these tasks:
- [ ] Rename the option in organice, or at least invert the boolean meaning so that it is aligned with Emacs. If I can make this mistake, others can, too.
- [ ] If need be, write a migration so that there's no regression. It is my understanding that this is not required if we do it as described above.
- [ ] Make a changelog entry.
Does that sound right?
Regarding the .organice-config.json, I have some problems with it (#895).
I'll answer there.
|
Hm, I don't quite understand. Yes, there is the difference between Org and organice that you described (apart from the inversion). Fixing organice to adapt indentation only for new text would be more work. I can't do that and I'd rather keep organice's behaviour but align with Org's default. Changing the default and renaming the option to align with Org would need a migration strategy, I think, because user that currently have indentation enabled probably want to keep this. Is there a problem when we only change the default? Current users have organice config files so they wouldn't be affected as long as they don't delete the config or start a new Dropbox. I think that would be acceptable. New users would get "a sane default". Note that in organice,
We could change the UI to invert the option. But I'm not sure if it's worth to rename the option internally and write a migration. |
Originally posted by @whxvd in #121 (comment)
Thanks for bringing this up. I hated the auto-indent and I'm glad the default is now
nil
! It was really bad for version control.Reference: https://orgmode.org/Changes.html
@munen I'd quickly fix the default but I can't find it. The closest thing is here:
but this specific option has no
default
key like some of the others.The text was updated successfully, but these errors were encountered: