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

David Maus <dmaus@ictsoc.de> 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

  reply	other threads:[~2010-05-14 20:25 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
2010-05-14 20:25       ` Bernt Hansen [this message]
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=87y6fmcjsq.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=dmaus@ictsoc.de \
    --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).