[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: did behaviour of RET change again?
From: |
Tom Gillespie |
Subject: |
Re: did behaviour of RET change again? |
Date: |
Wed, 23 Dec 2020 18:09:15 -0500 |
> in case not obvious, i am suggesting a nil value for org adapt indentation.
> thus no physical indentation of all lines including planning lines.
> i'd even suggest no physical indentation as default for example and
> source blocks, but that is a can of worms.
I know that this is a can of worms, but I agree. Given that the effects of
org-adapt-indentation can be mimicked in other ways without having the
literal spaces present in the file it may not be as big a deal as we think.
The other reason I think this is a good idea is because I have been working
on a formal grammar for the org syntax, and everything would be SO much
simpler about the implementation after the first pass parse if the canonical
representation of an Org file did not allow significant whitespace (with an
exception for plain lists).
Just avoiding having to deal with any number of nasty edge cases for correctly
aligning org babel blocks would be worth it. Not to mention the fact that it
means that you have to do a triple pass over each incoming line in order to be
sure that what you are passing to an org babel block has had the leading
whitespace removed (once for a normal parse, second time to adjust whitespace
and a third time to actually parse the babel block). No significant
leading whitespace
would remove the need for an entire pass in the parser.
I will have more on the subject when I finally get around to sharing the
grammar, but suffice to say, that having org-adapt-indentation set to true
and putting the leading spaces in the file (instead of doing whatever it is
that doom does by default) induces significant complexity into the
implementation. I would love to see it gone, as I'm sure anyone wanting
to parse org files in future will too.
Best!
Tom
- Re: did behaviour of RET change again?, (continued)
- Re: did behaviour of RET change again?, Berry, Charles, 2020/12/18
- Re: did behaviour of RET change again?, Bastien, 2020/12/20
- Re: did behaviour of RET change again?, Gustavo Barros, 2020/12/20
- Re: did behaviour of RET change again?, Eric S Fraga, 2020/12/21
- Re: did behaviour of RET change again?, Eric S Fraga, 2020/12/21
- Re: did behaviour of RET change again?, Kévin Le Gouguec, 2020/12/21
- Re: did behaviour of RET change again?, Kyle Meyer, 2020/12/22
- Re: did behaviour of RET change again?, Samuel Wales, 2020/12/22
- Re: did behaviour of RET change again?, Samuel Wales, 2020/12/22
- Re: did behaviour of RET change again?,
Tom Gillespie <=
- Re: did behaviour of RET change again?, Greg Minshall, 2020/12/23
- Re: did behaviour of RET change again?, Tom Gillespie, 2020/12/24
- Re: did behaviour of RET change again?, Devin Prater, 2020/12/25