emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Org Mode <emacs-orgmode@gnu.org>
Cc: David Maus <dmaus@ictsoc.de>
Subject: org-paste-subtree and org-refile broken
Date: Fri, 12 Aug 2011 22:31:21 -0500	[thread overview]
Message-ID: <87pqkac7hy.fsf@fastmail.fm> (raw)

The following commit broke org-paste-subtree (and, as a result, refile):

,----
| commit ece3091f16af246780e29ba6e8248dd8bb3b7ba2
| Author: David Maus <dmaus@ictsoc.de>
| Date:   Wed Aug 10 18:38:26 2011 +0200
| 
|     Don't eat headline when yank with point at existing headline
|     
|     * org.el (org-paste-subtree): Don't eat headline when called with
|     point at existing headline.
`----

Here is a minimal example:

--8<---------------cut here---------------start------------->8---
* One

Text in one

* Two

Text in two

* Three

Text in three

* Four

Text in four
--8<---------------cut here---------------end--------------->8---

If I kill subtree "Four" and call org-paste-subtree with the point on
"Two" (or if I refile it to "Two"), I get the following:

--8<---------------cut here---------------start------------->8---
* One

Text in one

* Two
* Four

Text in four

Text in two

* Three

Text in three
--8<---------------cut here---------------end--------------->8---

Best,
Matt

             reply	other threads:[~2011-08-13  3:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-13  3:31 Matt Lundin [this message]
2011-08-13  3:36 ` org-paste-subtree and org-refile broken Matt Lundin
2011-08-13  7:25 ` David Maus
2011-08-13 13:05   ` David Maus
2011-08-13 14:03     ` Matt Lundin
2011-08-20 18:41       ` David Maus

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=87pqkac7hy.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=dmaus@ictsoc.de \
    --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).