Hi Bastien,
I just wanted to report an issue with this fix. In many use cases it makes C-RET less useful, and renders the speedkeys command `i' useless. It makes C-RET function much like M-RET, and it makes `i' insert headlines before any content.
So if I call C-RET in the middle of the following headline:
---
** Important Meeting
SCHEDULED: <2014-04-26 Sat 16:30>
headline content...
---
I get:
---
** Important
** Meeting
SCHEDULED: <2014-04-26 Sat 16:00>
headline content...
---
And when I use the speedkeys command `i' at the beginning, I get
---
** Important Meeting
**
SCHEDULED: <2014-04-26 Sat 16:00>
headline content...
---
Both of these break the scheduling cookie and defeat the main purpose of these commands.
Reverting the change restores expected behavior in these cases, but then I suppose we are left with York's problem.
All best,
Leonard