[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-insert-heading rewritten from scratch
From: |
Carsten Dominik |
Subject: |
Re: [O] org-insert-heading rewritten from scratch |
Date: |
Tue, 3 Sep 2013 16:04:35 +0200 |
On Sep 3, 2013, at 3:58 PM, Nicolas Goaziou <address@hidden> wrote:
> Carsten Dominik <address@hidden> writes:
>
>> I am still not clear about this. In your earlier mail you made this example:
>>
>>> Well same as above: I think it eats blank lines where it shouldn't. It
>>> the following cases:
>>>
>>> * H1
>>>
>>> ** H2
>>>
>>> H
>>> X
>>>
>>> and
>>>
>>> * H1
>>>
>>> * H2
>>>
>>> H
>>>
>>> X
>>>
>>> I don't think there's any reason for M-RET to eat blank line before
>>> point with either `org-blank-before-new-entry' set to `auto' or t. It
>>> should know that a blank line is expected before the new entry and
>>> therefore should create the headline at point.
>>
>> WIth `auto', there will be an empty line before the next entry in both
>> cases. In both cases it looks at the H2 headline and sees the empty
>> line before it. Are you saying the behaviour should be different in
>> both cases?
>
> Yes, it should.
>
> As you point out, in both cases the algorithm knows that there should be
> a blank line before the new entry (with the assumption that behaviour is
> set to `auto'). In the first case, if it inserts the headline at point,
> there will be none, so it has to add one. In the second case, there is
> no need to add one since creating it at point will fulfill the
> requirement (which is "a blank line before new headline").
Yes. But you agree that the *result* should be the same, i.e. that there will
be an empty line before the newly inserted headline.
I think/hope we do agree now.
>
> Re-reading myself, I agree that my quoted explanations are a bit
> confusing. I hope this should clarify my point.
I think so.
Thank you for your patience.
- Carsten
- Re: [O] org-insert-heading rewritten from scratch, Carsten Dominik, 2013/09/01
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/01
- Re: [O] org-insert-heading rewritten from scratch, Carsten Dominik, 2013/09/01
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/01
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch, Carsten Dominik, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch, Carsten Dominik, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch, Carsten Dominik, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch,
Carsten Dominik <=
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/03
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/07
- Re: [O] org-insert-heading rewritten from scratch, Nicolas Goaziou, 2013/09/07