From: Charles Cave <charles_cave@optusnet.com.au>
To: emacs-orgmode@gnu.org
Subject: Re: My Python solution to generating unique Ids in headlines
Date: Thu, 5 Mar 2009 02:40:30 +0000 (UTC) [thread overview]
Message-ID: <loom.20090305T022823-529@post.gmane.org> (raw)
In-Reply-To: 13242.1236211183@alphaville.usa.hp.com
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
next prev parent reply other threads:[~2009-03-05 2:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 23:20 My Python solution to generating unique Ids in headlines Charles Cave
2009-03-04 23:59 ` Nick Dokos
2009-03-05 2:40 ` Charles Cave [this message]
2009-03-05 9:37 ` Carsten Dominik
2009-03-06 2:13 ` Samuel Wales
2009-03-05 8:39 ` Ian Barton
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20090305T022823-529@post.gmane.org \
--to=charles_cave@optusnet.com.au \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.