emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: My Python solution to generating unique Ids in headlines


From: Charles Cave
Subject: [Orgmode] Re: My Python solution to generating unique Ids in headlines
Date: Thu, 5 Mar 2009 02:40:30 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Nick Dokos <nicholas.dokos <at> hp.com> writes:
 
> Try
>       import sys
>       sys.stdout.write("[%d]" % val)

Thanks. That works fine.

> (shell-command "nextnum" t)

This worked fine.
> 
> It may be necessary to specify a complete path to the command.

I diodnt need to because the .BAT file was in a directory which is
part of the PAHT list.  By the way, I had to include a beginning
line of @ECHO OFF in the bat file.

> But I still don't understand why you need an external program: what is
> wrong with (insert (format "[%s]" (org-id-new)))? Are the IDs too ugly
> or is there some other problem?

I'm struggling to find documentation or installing and using org-id.
I added the line (require 'org-id) to my .eamcs file
then discovered a variable to customise the method to internal
or to use an external command uuidgen which doesnt exist on Windows.

How do I change the name of the external command from uuidgent
to nextnum

> The trouble with unique IDs in files is that it's easy for them to get
> out of sync (leading to non-uniqueness), e.g. if there are two processes
> trying to get a unique id at the same time.

This shouldnt be a problem as I am the only user.

Thanks for your help,
Charles






reply via email to

[Prev in Thread] Current Thread [Next in Thread]