From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Cut and paste an entry programmatically Date: Fri, 17 May 2019 12:16:16 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRa71-0006cz-NY for emacs-orgmode@gnu.org; Fri, 17 May 2019 06:29:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRZuf-0000qU-7l for emacs-orgmode@gnu.org; Fri, 17 May 2019 06:16:30 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:37799) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRZue-0000p3-RD for emacs-orgmode@gnu.org; Fri, 17 May 2019 06:16:29 -0400 Received: by mail-lj1-x22f.google.com with SMTP id h19so5806611ljj.4 for ; Fri, 17 May 2019 03:16:28 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode Hi all I found something else with ~org-paste-subtree~ that surprises me and that reminds me of ~C-c *~ where I was never able to get a remindable understanding of what it does until now when investigating deeper with this minimal complete example: #+begin_src org ,* a ,** b - x ,** c - y ,* d ,** e - z ,*** f ,** g #+end_src With point on c and ~org-paste-subtree~ the level of the new heading is 2 but on g the level is 3. Are the different levels intended behavior? If yes it would mean the need to add logic to programmatically get always the same level independent of the structure of the previous heading. If no and the level would be always 2 or always 3 I would at least not find it confusing. With point on x and ~C-c *~ the level of the new heading is 3 as expected by me. But on y it is 2 where I would still expect 3 with the strong argument that y should stay within c and not be "hierarchically moved" to a. On z the resulting level 4 seems completely off. Michael