[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Cut and paste an entry programmatically
From: |
Michael Brand |
Subject: |
Re: [O] Cut and paste an entry programmatically |
Date: |
Fri, 28 Jun 2019 13:07:32 +0200 |
Hi Samuel
On Thu, Jun 27, 2019 at 11:57 PM Samuel Wales <address@hidden> 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