From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li 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, 01 Mar 2018 07:52:33 +0000 Message-ID: References: <87a7wahsr1.fsf@nicolasgoaziou.fr> <871sh7z6rj.fsf@nicolasgoaziou.fr> <877eqxjzbu.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erJ1H-00051f-IM for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 02:52:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erJ1D-0008HM-E1 for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 02:52:51 -0500 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:45980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erJ1D-0008G4-7w for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 02:52:47 -0500 Received: by mail-qk0-x229.google.com with SMTP id g2so6404696qkd.12 for ; Wed, 28 Feb 2018 23:52:46 -0800 (PST) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com. [209.85.220.176]) by smtp.gmail.com with ESMTPSA id z22sm2392795qti.75.2018.02.28.23.52.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 23:52:44 -0800 (PST) Received: by mail-qk0-f176.google.com with SMTP id s188so6438341qkb.2 for ; Wed, 28 Feb 2018 23:52:44 -0800 (PST) In-Reply-To: <877eqxjzbu.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org Mode List On Wed, Feb 28, 2018 at 12:25 AM Nicolas Goaziou wrote: > Hello, > Allen Li writes: > >> > I modified the example a bit and made the undesired behavior unclear. > >> > > >> > * foo > >> > :PROPERTIES: > >> > :ID: a > >> > :END: > >> > * bar > >> > :PROPERTIES: > >> > :ID: b > >> > :END: > >> > > >> > Folded, this looks like > >> > > >> > * foo... > >> > * bar... > >> > > >> > With point on the f in foo, press C-c C-x C-w. With point on the b in > > bar, > >> > press C-c C-x C-y. Results in > >> > > >> > * bar > >> > * foo... > >> > > >> > Unfolded, this looks like > >> > > >> > * bar > >> > * foo > >> > :PROPERTIES: > >> > :ID: a > >> > :END: > >> > :PROPERTIES: > >> > :ID: b > >> > :END: > >> > > >> > I would expect C-c C-x C-y to work like C-RET rather than M-RET, that > > is to > >> > always append after the heading and body rather than splitting it. > > > >> I changed the behaviour of `org-paste-subtree' in master. Does it solve > >> the issue? > > > > No, the issue still exists. > Applying the recipe above, I get: > * bar > :PROPERTIES: > :ID: b > :END: > * foo > :PROPERTIES: > :ID: a > :END: Sorry, I made a silly mistake. I can also confirm that the issue is fixed on master. Thanks for the quick fix. > Regards, > -- > Nicolas Goaziou