From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Henoch Subject: Re: UIDs in icalendar export (exporting my agenda) Date: Wed, 15 Jul 2009 20:43:32 +0100 Message-ID: <84skgx20m3.fsf@linux-b2a3.site> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRAOR-00063y-Pa for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRAON-000636-Ev for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:55 -0400 Received: from [199.232.76.173] (port=51454 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRAON-00062v-3g for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:51 -0400 Received: from main.gmane.org ([80.91.229.2]:53569 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRAOM-0001wf-ER for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:50 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MRAOH-0007cI-76 for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 19:43:45 +0000 Received: from host213-123-170-251.in-addr.btopenworld.com ([213.123.170.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2009 19:43:45 +0000 Received: from magnus.henoch by host213-123-170-251.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2009 19:43:45 +0000 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: emacs-orgmode@gnu.org "aldrin d'souza" writes: > if you notice, the UIDs in both the events are same. aren't they supposed to be > different? when i import this file into an online calendar (like google) one of > the event is dropped. > am i missing something? i'm using org 6.28trans on emacs 23.0.94. My guess: you're running on a system where current-time always returns zero micro-seconds (Windows?); try with M-: (current-time). In the ideal case the output in the echo area looks like (19038 12367 114552), but yours is probably like (19038 12367 0). Since you don't have the uuidgen utility installed, the function `org-id-time-to-b36' is being called to generate the id, but since it's called twice in the same second and depends on current-time, it returns the same value twice. So someone should make `org-id-time-to-b36' return unique values in this case. (Append a random number?) Magnus