From: Brady Trainor <algebrat@uw.edu>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: New headline after no content (empty headline)
Date: Sun, 30 Mar 2014 23:26:19 -0700 [thread overview]
Message-ID: <53390A8B.2020507@uw.edu> (raw)
In-Reply-To: <87a9c6ykrx.fsf@bzg.ath.cx>
On 3/30/2014 10:55 PM, Bastien wrote:
> Hi Brady,
>
> Brady Trainor <algebrat@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
prev parent reply other threads:[~2014-03-31 6:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 21:24 New headline after no content (empty headline) Brady Trainor
2014-03-17 0:49 ` Bastien
2014-03-23 2:08 ` Brady Trainor
2014-03-23 8:33 ` Bastien
2014-03-28 5:57 ` Brady Trainor
2014-03-31 5:55 ` Bastien
2014-03-31 6:26 ` Brady Trainor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53390A8B.2020507@uw.edu \
--to=algebrat@uw.edu \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.