From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Bug: Cloning a task also clones the unique id [6.36trans] Date: Fri, 14 May 2010 16:25:41 -0400 Message-ID: <87y6fmcjsq.fsf@gollum.intra.norang.ca> References: <87eiheea2a.fsf@gollum.intra.norang.ca> <877hn6nuxs.wl%dmaus@ictsoc.de> <8739xue09q.fsf@gollum.intra.norang.ca> <8739xuntce.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=42581 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OD1SA-0005MR-PL for emacs-orgmode@gnu.org; Fri, 14 May 2010 16:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OD1S6-0002LV-Gm for emacs-orgmode@gnu.org; Fri, 14 May 2010 16:25:50 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:56385) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OD1S6-0002LQ-Bz for emacs-orgmode@gnu.org; Fri, 14 May 2010 16:25:46 -0400 In-Reply-To: <8739xuntce.wl%dmaus@ictsoc.de> (David Maus's message of "Fri\, 14 May 2010 22\:04\:01 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: emacs-orgmode@gnu.org David Maus writes: > Ah, yes, thanks. Deleting the property occurred on the wrong place. Fixed in > 51a37ca09529e2597a863e7b7390da4409c750dc in > git://github.com/dmj/dmj-org-mode.git quickfix. > > I'm not sure if we should delete an empty property drawer after > cloning, too. E.g. If the ID property was the only property of the > original subtree the clone have an empty property drawer. Though, it > is just a cosmetic issue. Personally I would prefer to delete the empty drawer. I still have weird behaviour with cloning a subtree. I start with this: ,---- | * test task | :PROPERTIES: | :ID: c3601a9c-d1f6-4e76-b7fc-707895112011 | :END: `---- and on the heading repeatedly clone it with C-c C-x c 1 RET RET and I get this: ,---- | * test task | :PROPERTIES: | :ID: c3601a9c-d1f6-4e76-b7fc-707895112011 | :END: | * test task | :PROPERTIES: | :END: `---- then this ,---- | * test task | :PROPERTIES: | :ID: c3601a9c-d1f6-4e76-b7fc-707895112011 | :END: | * test task | :PROPERTIES: | :ID: c3601a9c-d1f6-4e76-b7fc-707895112011 | :END: | * test task | :PROPERTIES: | :END: `---- then this ,---- | * test task | :PROPERTIES: | :ID: c3601a9c-d1f6-4e76-b7fc-707895112011 | :END: | * test task | :PROPERTIES: | :ID: c3601a9c-d1f6-4e76-b7fc-707895112011 | :END: | * test task | :PROPERTIES: | :END: | * test task | :PROPERTIES: | :END: `---- and as far as I can tell it behaves normally after the 3rd clone. I don't understand why the second clone keeps the ID. All clones I've tried after that produce the expected result with the empty property drawer. Org-mode version 6.36trans GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on raven, modified by Debian Regards, Bernt