Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
Carsten Dominik wrote: >On May 16, 2010, at 11:14 AM, David Maus wrote: >> Carsten Dominik wrote: - `org-id-new' uses uuidgen if present and falls back to the elisp function otherwise >> >>> I like that. WOuld you like to modify your patch accordingly? >> >> Yes, I'll do that. Just for the records: using the elisp function as >> fall back for the external program changes the meaning of the >> org-id-method uuidgen: It makes Org use UUIDs for the ID property and >> the external program is the preferred method for doing this. Hence >> the symbol should better be 'uuid, not 'uuidgen. So if there is a >> list for backward incompatible changes for a further release (maybe >> 7.x) that are reasonable but not important this should go there. >Yes. >But what I would like to to ask is this: >Make the change and tell people to use `uuid' as the setting. But if >a user has set it to uuidgen, be gentle and accept that setting as >well, treat it like uuid. Ah, yes, now I've got it. Patch will be there, soon. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpFOotbMvFfz.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
On May 16, 2010, at 11:14 AM, David Maus wrote: Carsten Dominik wrote: - `org-id-new' uses uuidgen if present and falls back to the elisp function otherwise I like that. WOuld you like to modify your patch accordingly? Yes, I'll do that. Just for the records: using the elisp function as fall back for the external program changes the meaning of the org-id-method uuidgen: It makes Org use UUIDs for the ID property and the external program is the preferred method for doing this. Hence the symbol should better be 'uuid, not 'uuidgen. So if there is a list for backward incompatible changes for a further release (maybe 7.x) that are reasonable but not important this should go there. Yes. But what I would like to to ask is this: Make the change and tell people to use `uuid' as the setting. But if a user has set it to uuidgen, be gentle and accept that setting as well, treat it like uuid. Thanks! - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
Carsten Dominik wrote: >> >> - `org-id-new' uses uuidgen if present and falls back to the elisp >> function otherwise >I like that. WOuld you like to modify your patch accordingly? Yes, I'll do that. Just for the records: using the elisp function as fall back for the external program changes the meaning of the org-id-method uuidgen: It makes Org use UUIDs for the ID property and the external program is the preferred method for doing this. Hence the symbol should better be 'uuid, not 'uuidgen. So if there is a list for backward incompatible changes for a further release (maybe 7.x) that are reasonable but not important this should go there. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpHQJxL6P6gn.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
On May 8, 2010, at 4:14 PM, David Maus wrote: Carsten Dominik wrote: what is the difference/advantage of this idea over using uuidgen as Org does now? Well, it allows uuids without depending on the presence of the uuidgen binary. E.g. I happen to occasionally use computers I have no control of and carry my Emacs/Org configuration with me. Without the elisp function the ID properties of my headlines are in an inconsistent format depending on whether uuidgen was present on the machine I created the ID property or not. It may be a little pedantic but I'd like to be specific in what format the IDs have and like the idea of having IDs that follow an established standard. Maybe another usage of the function could be: - org-id-method can be 'org for Org's id mechanism or 'uuid for uuids I think it should be either uuidgen (for backward compatibility) or uuid. - `org-id-new' uses uuidgen if present and falls back to the elisp function otherwise I like that. WOuld you like to modify your patch accordingly? - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
Carsten Dominik wrote: >what is the difference/advantage of this idea over using uuidgen as >Org does now? Well, it allows uuids without depending on the presence of the uuidgen binary. E.g. I happen to occasionally use computers I have no control of and carry my Emacs/Org configuration with me. Without the elisp function the ID properties of my headlines are in an inconsistent format depending on whether uuidgen was present on the machine I created the ID property or not. It may be a little pedantic but I'd like to be specific in what format the IDs have and like the idea of having IDs that follow an established standard. Maybe another usage of the function could be: - org-id-method can be 'org for Org's id mechanism or 'uuid for uuids - `org-id-new' uses uuidgen if present and falls back to the elisp function otherwise Regards, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp7fUF1gjHRP.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
Hi David, what is the difference/advantage of this idea over using uuidgen as Org does now? Thanks. - Carsten On May 7, 2010, at 5:57 PM, David Maus wrote: Attached patch for org-id adds a new function `org-id-uuid' that returns a random (version 4) uuid following the format and suggestions in RFC 4122: - it collects some random, system ans user specific data - creates a md5 hash for this data to obtain the require 32 octets - flips the correct bits to indicate a random uuid Using the elisp method to create a random uuid can be customized by setting `org-id-method' to 'uuid. In addition `org-id-new' throws an error when the call to `org-id-uuid-program' returns something that does not look like a uuid.[1] HTH -- David [1] Sorry, this should have been a patch on its own. -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de elisp.diff>___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid
Attached patch for org-id adds a new function `org-id-uuid' that returns a random (version 4) uuid following the format and suggestions in RFC 4122: - it collects some random, system ans user specific data - creates a md5 hash for this data to obtain the require 32 octets - flips the correct bits to indicate a random uuid Using the elisp method to create a random uuid can be customized by setting `org-id-method' to 'uuid. In addition `org-id-new' throws an error when the call to `org-id-uuid-program' returns something that does not look like a uuid.[1] HTH -- David [1] Sorry, this should have been a patch on its own. -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de org-id-uuid-elisp.diff Description: Binary data pgpZH8pfMchf1.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode