Fix problem when inserting a new headline
commitfc2bdd8cf163936d58ecdcf60a79e50d8694afcd
authorCarsten Dominik <carsten.dominik@gmail.com>
Tue, 23 Mar 2010 07:44:13 +0000 (23 08:44 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 23 Mar 2010 07:44:13 +0000 (23 08:44 +0100)
tree26c8cd59a3eccb40ed8b5d260db826c8cc13c2f5
parent04f0654a5713b1f5195f0cb3783893930a947b03
Fix problem when inserting a new headline

Ryan Thompson writes:

> I have found a bug. When the point is at the end of an empty headline
> and you press M-RET (or C-RET) to make a new headline, it deletes all
> the whitespace at the end of the empty headline first, which causes
> the headline to break. I'm not sure if the correct behavior is to
> leave an empty headline, or maybe just do nothing and leave the point
> at the end of the empty headline without creating a new one, but the
> correct thing is definitely *not* to break the headline.
lisp/ChangeLog
lisp/org.el