emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Cloning a task also clones the unique id [6.36trans]
Date: Fri, 14 May 2010 22:04:01 +0200	[thread overview]
Message-ID: <8739xuntce.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <8739xue09q.fsf@gollum.intra.norang.ca>


[-- Attachment #1.1: Type: text/plain, Size: 1318 bytes --]

Bernt Hansen wrote:
>David Maus <dmaus@ictsoc.de> writes:

>> Bernt Hansen wrote:
>>
>>>I use unique ids for my tasks (enabling org-id in org-modules)
>>
>>>If you clone a task with a unique id by using C-c C-x c the clone has a
>>>copy of the property drawer with the same ID.
>>
>> Commit b18a4f8a2b093f951fdd143b1331a135eab4e515 in
>> git://github.com/dmj/dmj-org-mode.git quickfix fixes this glitch by
>> removing the ID property of the clones of the original subtree.
>>
>> It makes sense to not clone the ID properties if we think of it
>> representing the identity of a subtree.

>Hi David,

>Thanks for this.  There's a problem with it if you don't do a time shift
>when you clone -- in this case you don't remove the entry.

>C-c C-x c 1 RET RET

>produces a straight copy of the task including the id.

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.

HTH
 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-05-14 20:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14 16:13 Bug: Cloning a task also clones the unique id [6.36trans] Bernt Hansen
2010-05-14 19:29 ` David Maus
2010-05-14 19:44   ` Bernt Hansen
2010-05-14 20:04     ` David Maus [this message]
2010-05-14 20:25       ` Bernt Hansen
2010-05-14 21:01         ` David Maus
2010-05-14 23:05           ` Carsten Dominik
2010-05-17 13:00             ` Giovanni Ridolfi
2010-05-17 13:26               ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739xuntce.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).