From: Carsten Dominik <carsten.dominik@gmail.com>
To: Matt Lundin <mdl@imapmail.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-insert-heading and inline tasks
Date: Fri, 15 Oct 2010 08:48:24 +0200 [thread overview]
Message-ID: <76353000-2879-45E2-9E47-24842CAA4ED9@gmail.com> (raw)
In-Reply-To: <877hhklk5c.fsf@fastmail.fm>
On Oct 14, 2010, at 8:11 PM, Matt Lundin wrote:
> Hi Carsten,
>
> The following commit changes the behavior of org-insert-heading within
> the context of inline tasks:
>
> 19d695ef8fd27ac1b1ef1b675c3960b9b7d6abdc
>
> I find that new headlines are no longer inserted at the same depth as
> inline tasks. A quick skim of the diff suggests that this is the
> intended behavior. While I understand that one would not normally
> want a
> new headline to derive its depth from an inline task further up in the
> subtree, I often enter a few inline tasks at the same depth in quick
> succession, e.g., when creating a mini project-hierarchy from a single
> inline task.
>
> Take the following example:
>
> --8<---------------cut here---------------start------------->8---
> * My big writing project
>
> Blah blah blah blah blah blah.
>
> *************** PROJECT Add some variety to the above
> **************** TODO Look up synonyms for blah
>
> Blah blah blah blah blah blah blah.
> --8<---------------cut here---------------end--------------->8---
>
> If I hit M-RET at the beginning of the second TODO headline, I get the
> following:
>
> --8<---------------cut here---------------start------------->8---
> * My big writing project
>
> Blah blah blah blah blah blah.
>
> *************** PROJECT Add some variety to the above
> *
>
> **************** TODO Look up synonyms for blah
>
> Blah blah blah blah blah blah blah.
> --8<---------------cut here---------------end--------------->8---
>
> Would it be possible to respect the depth of an inline task if one
> calls
> org-insert-headline directly on the headline? Normally, if I call M-
> RET
> from an inline-task headline, I intend to insert another task at the
> same depth. This is especially true if I'd like to add an END headline
> to an inline task.
Okay, fair anough, it now works like this.
- Carsten
prev parent reply other threads:[~2010-10-15 6:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 18:11 org-insert-heading and inline tasks Matt Lundin
2010-10-15 5:45 ` Noorul Islam K M
2010-10-15 6:16 ` Nick Dokos
2010-10-15 6:48 ` Carsten Dominik [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
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=76353000-2879-45E2-9E47-24842CAA4ED9@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mdl@imapmail.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).