emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tom Davey <tdavey@gmail.com>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Problem with org-insert-heading on multi-line items?
Date: Sat, 25 May 2013 14:53:34 -0400	[thread overview]
Message-ID: <CAG1pqKzDcq6eqYJbhcGdAUXMkRW804UhoU1BZrs5aGSMAyLmfg@mail.gmail.com> (raw)

Hi folks,

I'm using Org 8.0.3 and Emacs 24.3.1.

I noticed with interest this note in the Org 8.0 release notes:

"When a list item has a checkbox, inserting a new item uses a checkbox
too."

I'm finding, however, that Org will in many cases insert a new
checkbox even if the current item has none. Specifically, invoking
org-insert-heading on the second or subsequent lines of a multi-line item
will create a new checkbox item every time, whether the current
item has a checkbox or not. To illustrate:

1. org-insert-heading invoked here creates a new plain item
2. org-insert-heading invoked on this second item does the same
3. However, org-insert-heading, invoked on the SECOND line of this
    creates a following checkbox item:
4. [ ]

However, invoking org-insert-heading on the first line of a multi-line
item creates new items of the correct type, checkbox or not. So it
seems like the first line is determinative.

May I ask if anybody else is seeing this behavior? Is it as designed?

Regards,
Tom Davey

--
Tom Davey
tom@tomdavey.com
New York NY USA

             reply	other threads:[~2013-05-25 18:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 18:53 Tom Davey [this message]
2013-06-02 17:42 ` Problem with org-insert-heading on multi-line items? Carsten Dominik
2013-08-07  3:20   ` Tom Davey
2013-08-07  4:21     ` Nick Dokos
2013-08-07 15:16       ` Tom Davey
2013-08-07 16:39         ` Suvayu Ali
2013-08-08  6:41     ` Carsten Dominik
2013-08-22 16:57       ` Bernt Hansen

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG1pqKzDcq6eqYJbhcGdAUXMkRW804UhoU1BZrs5aGSMAyLmfg@mail.gmail.com \
    --to=tdavey@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).