Re: [O] issues with duplicate ID's

2016-07-23 Thread Philip Hudson
On 23 July 2016 at 08:02, Xebar Saram  wrote:
> i see why this happens since i often copy org headers to add new function
> and the ID is copied alongside

It would not be too hard to advise `org-yank' and `org-pasted-subtree'
to delete yanked IDs that are duplicates within the current buffer,
either interactively or automatically. With a bit more work, it could
be extended to scan a whole directory or fileset such as
`org-agenda-files'.

-- 
Phil Hudson   http://hudson-it.ddns.net
@UWascalWabbit PGP/GnuPG ID: 0x887DCA63



Re: [O] issues with duplicate ID's

2016-07-23 Thread Xebar Saram
also: does anyone know of a function to go through all org files and
present a nice buffer with all duplicates and a way to auto remove them

i see why this happens since i often copy org headers to add new function
and the ID is copied alongside

Z

On Fri, Jul 22, 2016 at 8:46 PM, Xebar Saram  wrote:

> thx
> it seems many of them are in the corresponding archive files. isnt that
> normal when you archive?
>
> best
>
> Z
>
> On Fri, Jul 22, 2016 at 6:20 PM, Philip Hudson 
> wrote:
>
>> On 22 July 2016 at 12:58, Xebar Saram  wrote:
>> > Hi all
>> >
>> > i have been having many warnings on Duplicate ID's past month and
>> finally
>> > have time/energy to ask about this ;-)
>> >
>> > so each time i start emacs or switch org buffers i get a ton of
>> warnings on
>> > Duplicate ID's:
>> >
>> ...
>> >
>> > 2 questions
>> >
>> > a) does this have any affect on orgmode performance or other effects i
>> cant
>> > think of?
>>
>> Breaks MobileOrg, for one.
>>
>> > b) any intelligent way of resolving this?
>>
>> Assuming they are all programmatically assigned and not explicitly
>> referenced by you anywhere: delete all the IDs. New ones will be
>> assigned.
>>
>>
>> --
>> Phil Hudson   http://hudson-it.ddns.net
>> @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
>>
>
>


Re: [O] issues with duplicate ID's

2016-07-22 Thread Xebar Saram
thx
it seems many of them are in the corresponding archive files. isnt that
normal when you archive?

best

Z

On Fri, Jul 22, 2016 at 6:20 PM, Philip Hudson 
wrote:

> On 22 July 2016 at 12:58, Xebar Saram  wrote:
> > Hi all
> >
> > i have been having many warnings on Duplicate ID's past month and finally
> > have time/energy to ask about this ;-)
> >
> > so each time i start emacs or switch org buffers i get a ton of warnings
> on
> > Duplicate ID's:
> >
> ...
> >
> > 2 questions
> >
> > a) does this have any affect on orgmode performance or other effects i
> cant
> > think of?
>
> Breaks MobileOrg, for one.
>
> > b) any intelligent way of resolving this?
>
> Assuming they are all programmatically assigned and not explicitly
> referenced by you anywhere: delete all the IDs. New ones will be
> assigned.
>
>
> --
> Phil Hudson   http://hudson-it.ddns.net
> @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
>


Re: [O] issues with duplicate ID's

2016-07-22 Thread Philip Hudson
On 22 July 2016 at 12:58, Xebar Saram  wrote:
> Hi all
>
> i have been having many warnings on Duplicate ID's past month and finally
> have time/energy to ask about this ;-)
>
> so each time i start emacs or switch org buffers i get a ton of warnings on
> Duplicate ID's:
>
...
>
> 2 questions
>
> a) does this have any affect on orgmode performance or other effects i cant
> think of?

Breaks MobileOrg, for one.

> b) any intelligent way of resolving this?

Assuming they are all programmatically assigned and not explicitly
referenced by you anywhere: delete all the IDs. New ones will be
assigned.


-- 
Phil Hudson   http://hudson-it.ddns.net
@UWascalWabbit PGP/GnuPG ID: 0x887DCA63



[O] issues with duplicate ID's

2016-07-22 Thread Xebar Saram
Hi all

i have been having many warnings on Duplicate ID's past month and finally
have time/energy to ask about this ;-)

so each time i start emacs or switch org buffers i get a ton of warnings on
Duplicate ID's:

WARNING: 20 duplicate IDs found, check *Messages* buffer

Duplicate ID "9276e354-d04c-43e4-a11e-27d90359b0a4", also in file
/home/zeltak/org/files/archive/TODO.org_archive
Duplicate ID "08e2584a-dc9f-49f9-b0b2-555d407a499b", also in file
/home/zeltak/org/files/archive/TODO.org_archive
Duplicate ID "da41e5f7-b9cf-4cd7-99e2-fad1f7844ab3", also in file
/home/zeltak/org/files/archive/TODO.org_archive
Made readonly! [2 times]
Duplicate ID "62b49339-cd19-4a3c-a6fd-70dd45be4670", also in file
~/org/files/agenda/dl.org
Made readonly! [2 times]
Duplicate ID "ecc84901-e33e-45c2-8da5-fc6876bccc2a", also in file
~/org/files/archive/TODO.org_archive
Made readonly! [2 times]
Duplicate ID "42c7ae56-5843-403a-84d2-8c12e8c4c03f", also in file
/home/zeltak/org/files/agenda/travel.org
Made readonly!
Duplicate ID "52148936-a9d5-4556-b688-e580676b05a7", also in file
/home/zeltak/.emacs.d/settings.org
Duplicate ID "b8969b3e-17d5-4913-95d1-1e68ec8550a8", also in file
/home/zeltak/.emacs.d/settings.org
Duplicate ID "b0e5fed7-b3c2-4c48-9029-be0a56b02b0f", also in file
/home/zeltak/.emacs.d/settings.org
Duplicate ID "b1bd78ae-83b5-4cb4-a4b5-6db5287f3956", also in file
/home/zeltak/.emacs.d/settings.org
Duplicate ID "5d5567f8-9f16-4b76-adb6-8600ce16e2ec", also in file
/home/zeltak/.emacs.d/settings.org
. this goes on and on ;-)

2 questions

a) does this have any affect on orgmode performance or other effects i cant
think of?

b) any intelligent way of resolving this?

best

Z