From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Cut and paste an entry programmatically Date: Fri, 28 Jun 2019 13:07:32 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48712) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgqau-0006dB-Jg for emacs-orgmode@gnu.org; Fri, 28 Jun 2019 09:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgqaq-0006wQ-Oc for emacs-orgmode@gnu.org; Fri, 28 Jun 2019 09:07:09 -0400 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:34792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgqaq-0006uw-HO for emacs-orgmode@gnu.org; Fri, 28 Jun 2019 09:07:08 -0400 Received: by mail-lj1-x230.google.com with SMTP id p17so5942570ljg.1 for ; Fri, 28 Jun 2019 06:07:06 -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: Samuel Wales Cc: Org Mode Hi Samuel On Thu, Jun 27, 2019 at 11:57 PM Samuel Wales wrote: > does (kill-new "") in front of the kill fix it? Good idea. Yes, it prevents reinsertion of "1". Same with (setq kill-ring nil) in front of org-cut-subtree. With your idea I debug printed kill-ring and found that after the second invocation of org-cut-subtree during ~M-: (temp) RET M-: (temp) RET~ it consists of only one list element with a string containing both 1 and 2 instead of one list element with only 1 and another with only 2. So to me this looks like a bug in org-cut-subtree. Michael