emacs-orgmode
[Top][All Lists]
Advanced

[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 15:47:17 +0200

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?

Cheers

- Carsten


On Sep 3, 2013, at 3:38 PM, Nicolas Goaziou <address@hidden> wrote:

> Carsten Dominik <address@hidden> writes:
> 
>> Hmmm, I thought you just asked me to implement exactly what you see,
>> namely that M-RET will not remove empty lines above the cursor - only
>> add them.  Did I misunderstand?
> 
> I think so.
> 
> M-RET should not remove (or add) anything when it has no information
> whatsoever about what the user want, namely when behaviour is set to
> `auto' _and_ number of blank lines (or lack thereof) cannot be deduced
> from other headlines.
> 
> When `org-blank-before-new-entry' is set to t (respectively nil), the
> message is pretty clear. There are no heuristics involved and the
> function can add (respectively remove) blank lines to its heart's
> contents.
> 
> Sorry if I wasn't clear enough.
> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou




reply via email to

[Prev in Thread] Current Thread [Next in Thread]