On 3/30/2014 10:55 PM, Bastien wrote:
Hi Brady,

Brady Trainor <algeb...@uw.edu> writes:

For `org-insert-heading' (M-RET), I wanted the following action on empty
headlines:

"* " |--> "* \n* ", rather than "*\n* ".

I'm not sure I understand this, can you make it more explicit?

Thanks!


I mean that if I use org-insert heading on an empty headline, it removes the space after asterisk(s). This then means that what was previously an empty heading (with a space), becomes just asterisk(s) no longer interpreted by org-mode as a heading.

I concluded that the space was removed by org-N-empty-lines-before-current function, where `(unless (looking-back "\* \n")...` prevents `org-N-...` from removing that space.

Thank you,

Brady

Reply via email to