From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-paste-subtree displaces folded content [9.1.6 (9.1.6-48-gfe7619-elpaplus @ /home/ionasal/.emacs.d/elpa/org-plus-contrib-20180212/)] Date: Thu, 15 Feb 2018 22:01:38 +0100 Message-ID: <87a7wahsr1.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emQf6-0000EV-96 for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 16:01:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emQf1-000699-HX for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 16:01:48 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:50390) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emQf1-00064U-B3 for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 16:01:43 -0500 In-Reply-To: (Allen Li's message of "Tue, 13 Feb 2018 23:04:12 +0000") 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: Allen Li Cc: Org Mode List Hello, Allen Li writes: > With the org file: > > * foo > some content > * bar > some content 1 > some content 2 > > 1. C-s foo RET > 2. C-c C-x C-w > 3. C-r some RET > 4. C-c C-x C-y > > Final content is > > * bar > some content 1 > * foo > some content > some content 2 I can reproduce it. > The behavior is insidious when the contents are folded: > > * foo... > * bar... > > turns into > > * bar... > * foo... IIUC, you cannot reproduce the example above when contents are folded, since you do not have access to the headline contents. > This can displace property and logbook drawers, timestamps, etc with very > little visual indication. > > Is this behavior even desirable? To me, killing and yanking subtrees > should keep the content with the headings and not "splice" subtrees into > the middle of another heading's content But you did yank the contents of the subtree into the middle of another heading's content. So, what should do Org? Decide that you don't know what you are doing and paste it at the end of the current section? What if you really want to split the current section? Is there any good solution to this problem? Regards, -- Nicolas Goaziou