emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] New headline after no content (empty headline)


From: Brady Trainor
Subject: Re: [O] New headline after no content (empty headline)
Date: Sun, 30 Mar 2014 23:26:19 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0


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

Brady Trainor <address@hidden> 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

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