Skip to content
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

Indents despite org-src-preserve-indentation #18

Open
lafrenierejm opened this issue Jul 6, 2019 · 2 comments
Open

Indents despite org-src-preserve-indentation #18

lafrenierejm opened this issue Jul 6, 2019 · 2 comments

Comments

@lafrenierejm
Copy link

lafrenierejm commented Jul 6, 2019

The help text for org-edit-src-content-indentation states, "[org-edit-src-content-indentation] has no effect if org-src-preserve-indentation is non-nil." However, the value of :indent-offset in define-auto-innermode does not take into account the value of org-src-preserve-indentation.

Any easy workaround for users is to set org-edit-src-content-indentation to 0. Alternatively, if the argument to :indent-offset can be a quoted function, one could easily be defined to respect both values.

@vspinu
Copy link
Contributor

vspinu commented Jul 6, 2019

What's the problem more concretely?

org-edit-src-content-indentation is used only as a default value of body-indent-offset which is not intended to respect that variable semantics. I had to pick the default from somewhere and that variable seemed the most appropriated place to sniff it from.

@lafrenierejm
Copy link
Author

The question is whether it's feasible to use a function as the value of body-indent-offset. On reconsideration, though, I don't know if that would provide any tangible benefits over just more clearly documenting that org-src-preserve-indentation is ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants