emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG - Archiving to the archive sibling duplicates tasks
@ 2008-12-02 19:07 Bernt Hansen
  2008-12-03 14:00 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Bernt Hansen @ 2008-12-02 19:07 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi Carsten,

I've found a bug with the archive process.

,----[ test.org ]
| * One
| ** One One
| ** One Two
| ** One Three
| ** One Four
`----

If you put the point on line 2 (The ** One One task) and then hit 

   C-c C-x A

4 times in a row to archive the four subtasks to the archive sibling I
get the following as a result:

,----[ test.org ]
| * One
| ** Archive							       :ARCHIVE:
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
|     :END:
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
|     :END:
| *** One Two
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
|     :END:
| *** One Two
| *** One Three
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
|     :END:
| *** One Two
| *** One Three
| *** One Four
`----

with lots of duplicated entries.

If I use the following sequence it works:

   C-c C-x A
   down arrow
   up arrow

repeated 4 times and I end up with what I was expecting

,----[ test.org ]
| * One
| ** Archive							       :ARCHIVE:
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
|     :END:
| *** One Two
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
|     :END:
| *** One Three
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
|     :END:
| *** One Four
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
|     :END:
`----

After the first C-c C-x A it looks like this (which is correct)

,----[ test.org ]
| * One
| ** One Two
| ** One Three
| ** One Four
| ** Archive							       :ARCHIVE:
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:02
|     :END:
`----

and after the second it looks like this (which is wrong)

,----[ test.org ]
| * One
| ** One Three
| ** One Four
| ** Archive							       :ARCHIVE:
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
|     :END:
| *** One One
|     :PROPERTIES:
|     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
|     :END:
| *** One Two
`----

I'm running this from a minimal emacs session.  I can provide the setup
if you need it.

$ git describe
release_6.13a-23-g269c5a8

Thanks,
Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG - Archiving to the archive sibling duplicates tasks
  2008-12-02 19:07 BUG - Archiving to the archive sibling duplicates tasks Bernt Hansen
@ 2008-12-03 14:00 ` Carsten Dominik
  2008-12-03 14:02   ` Bernt Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2008-12-03 14:00 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Dec 2, 2008, at 8:07 PM, Bernt Hansen wrote:

> Hi Carsten,
>
> I've found a bug with the archive process.
>
> ,----[ test.org ]
> | * One
> | ** One One
> | ** One Two
> | ** One Three
> | ** One Four
> `----
>
> If you put the point on line 2 (The ** One One task) and then hit
>
>   C-c C-x A
>
> 4 times in a row to archive the four subtasks to the archive sibling I
> get the following as a result:
>
> ,----[ test.org ]
> | * One
> | ** Archive							       :ARCHIVE:
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
> |     :END:
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
> |     :END:
> | *** One Two
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
> |     :END:
> | *** One Two
> | *** One Three
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
> |     :END:
> | *** One Two
> | *** One Three
> | *** One Four
> `----
>
> with lots of duplicated entries.
>
> If I use the following sequence it works:
>
>   C-c C-x A
>   down arrow
>   up arrow
>
> repeated 4 times and I end up with what I was expecting
>
> ,----[ test.org ]
> | * One
> | ** Archive							       :ARCHIVE:
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
> |     :END:
> | *** One Two
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
> |     :END:
> | *** One Three
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
> |     :END:
> | *** One Four
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
> |     :END:
> `----
>
> After the first C-c C-x A it looks like this (which is correct)
>
> ,----[ test.org ]
> | * One
> | ** One Two
> | ** One Three
> | ** One Four
> | ** Archive							       :ARCHIVE:
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:02
> |     :END:
> `----
>
> and after the second it looks like this (which is wrong)
>
> ,----[ test.org ]
> | * One
> | ** One Three
> | ** One Four
> | ** Archive							       :ARCHIVE:
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
> |     :END:
> | *** One One
> |     :PROPERTIES:
> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
> |     :END:
> | *** One Two
> `----
>
> I'm running this from a minimal emacs session.  I can provide the  
> setup
> if you need it.
>
> $ git describe
> release_6.13a-23-g269c5a8
>
> Thanks,
> Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG - Archiving to the archive sibling duplicates tasks
  2008-12-03 14:00 ` Carsten Dominik
@ 2008-12-03 14:02   ` Bernt Hansen
  2008-12-03 14:10     ` Bernt Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Bernt Hansen @ 2008-12-03 14:02 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Thanks!

I think this is probably related to similar things I've seen in the
past with org-archive-subtree but didn't spend the time to reproduce
back then.

I'm just mentioning that in case it's relevant.

-Bernt

Carsten Dominik <dominik@science.uva.nl> writes:

> Fixed, thanks.
>
> - Carsten
>
> On Dec 2, 2008, at 8:07 PM, Bernt Hansen wrote:
>
>> Hi Carsten,
>>
>> I've found a bug with the archive process.
>>
>> ,----[ test.org ]
>> | * One
>> | ** One One
>> | ** One Two
>> | ** One Three
>> | ** One Four
>> `----
>>
>> If you put the point on line 2 (The ** One One task) and then hit
>>
>>   C-c C-x A
>>
>> 4 times in a row to archive the four subtasks to the archive sibling I
>> get the following as a result:
>>
>> ,----[ test.org ]
>> | * One
>> | ** Archive							       :ARCHIVE:
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>> |     :END:
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>> |     :END:
>> | *** One Two
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>> |     :END:
>> | *** One Two
>> | *** One Three
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>> |     :END:
>> | *** One Two
>> | *** One Three
>> | *** One Four
>> `----
>>
>> with lots of duplicated entries.
>>
>> If I use the following sequence it works:
>>
>>   C-c C-x A
>>   down arrow
>>   up arrow
>>
>> repeated 4 times and I end up with what I was expecting
>>
>> ,----[ test.org ]
>> | * One
>> | ** Archive							       :ARCHIVE:
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>> |     :END:
>> | *** One Two
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>> |     :END:
>> | *** One Three
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>> |     :END:
>> | *** One Four
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>> |     :END:
>> `----
>>
>> After the first C-c C-x A it looks like this (which is correct)
>>
>> ,----[ test.org ]
>> | * One
>> | ** One Two
>> | ** One Three
>> | ** One Four
>> | ** Archive							       :ARCHIVE:
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:02
>> |     :END:
>> `----
>>
>> and after the second it looks like this (which is wrong)
>>
>> ,----[ test.org ]
>> | * One
>> | ** One Three
>> | ** One Four
>> | ** Archive							       :ARCHIVE:
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
>> |     :END:
>> | *** One One
>> |     :PROPERTIES:
>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
>> |     :END:
>> | *** One Two
>> `----
>>
>> I'm running this from a minimal emacs session.  I can provide the
>> setup
>> if you need it.
>>
>> $ git describe
>> release_6.13a-23-g269c5a8
>>
>> Thanks,
>> Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG - Archiving to the archive sibling duplicates tasks
  2008-12-03 14:02   ` Bernt Hansen
@ 2008-12-03 14:10     ` Bernt Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2008-12-03 14:10 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

I just verified that both C-c C-x A and C-c C-x C-s both work now.

Thanks!!

-Bernt

Bernt Hansen <bernt@norang.ca> writes:

> Thanks!
>
> I think this is probably related to similar things I've seen in the
> past with org-archive-subtree but didn't spend the time to reproduce
> back then.
>
> I'm just mentioning that in case it's relevant.
>
> -Bernt
>
> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> Fixed, thanks.
>>
>> - Carsten
>>
>> On Dec 2, 2008, at 8:07 PM, Bernt Hansen wrote:
>>
>>> Hi Carsten,
>>>
>>> I've found a bug with the archive process.
>>>
>>> ,----[ test.org ]
>>> | * One
>>> | ** One One
>>> | ** One Two
>>> | ** One Three
>>> | ** One Four
>>> `----
>>>
>>> If you put the point on line 2 (The ** One One task) and then hit
>>>
>>>   C-c C-x A
>>>
>>> 4 times in a row to archive the four subtasks to the archive sibling I
>>> get the following as a result:
>>>
>>> ,----[ test.org ]
>>> | * One
>>> | ** Archive							       :ARCHIVE:
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>>> |     :END:
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>>> |     :END:
>>> | *** One Two
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>>> |     :END:
>>> | *** One Two
>>> | *** One Three
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 13:57
>>> |     :END:
>>> | *** One Two
>>> | *** One Three
>>> | *** One Four
>>> `----
>>>
>>> with lots of duplicated entries.
>>>
>>> If I use the following sequence it works:
>>>
>>>   C-c C-x A
>>>   down arrow
>>>   up arrow
>>>
>>> repeated 4 times and I end up with what I was expecting
>>>
>>> ,----[ test.org ]
>>> | * One
>>> | ** Archive							       :ARCHIVE:
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>>> |     :END:
>>> | *** One Two
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>>> |     :END:
>>> | *** One Three
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>>> |     :END:
>>> | *** One Four
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:00
>>> |     :END:
>>> `----
>>>
>>> After the first C-c C-x A it looks like this (which is correct)
>>>
>>> ,----[ test.org ]
>>> | * One
>>> | ** One Two
>>> | ** One Three
>>> | ** One Four
>>> | ** Archive							       :ARCHIVE:
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:02
>>> |     :END:
>>> `----
>>>
>>> and after the second it looks like this (which is wrong)
>>>
>>> ,----[ test.org ]
>>> | * One
>>> | ** One Three
>>> | ** One Four
>>> | ** Archive							       :ARCHIVE:
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
>>> |     :END:
>>> | *** One One
>>> |     :PROPERTIES:
>>> |     :ARCHIVE_TIME: 2008-12-02 Tue 14:03
>>> |     :END:
>>> | *** One Two
>>> `----
>>>
>>> I'm running this from a minimal emacs session.  I can provide the
>>> setup
>>> if you need it.
>>>
>>> $ git describe
>>> release_6.13a-23-g269c5a8
>>>
>>> Thanks,
>>> Bernt
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-03 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-02 19:07 BUG - Archiving to the archive sibling duplicates tasks Bernt Hansen
2008-12-03 14:00 ` Carsten Dominik
2008-12-03 14:02   ` Bernt Hansen
2008-12-03 14:10     ` Bernt Hansen

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).