emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Properties ID vs. CUSTOM_ID


From: Eric Abrahamsen
Subject: Re: [O] Properties ID vs. CUSTOM_ID
Date: Thu, 22 Dec 2016 13:40:05 -0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux)

Carsten Dominik <address@hidden> writes:

> Dear all,
>
> before continuing this discussion, and before reinventing, you might
> want to take a look at how org-id.el currently does create unique IDs.
>  In particular, take a look at these variables:
>
> org-id-prefix
> org-id-method
> org-id-include-domain
>
> In particular, the docstring of the variable org-id-method is
>
>   "The method that should be used to create new IDs.
>
> An ID will consist of the optional prefix specified in
> `org-id-prefix',
> and a unique part created by the method this variable specifies.
>
> Allowed values are:
>
> org        Org's own internal method, using an encoding of the current
> time to
>            microsecond accuracy, and optionally the current domain of
> the
>            computer.  See the variable `org-id-include-domain'.
>
> uuid       Create random (version 4) UUIDs.  If the program defined in
>            `org-id-uuid-program' is available it is used to create the
> ID.
>            Otherwise an internal functions is used."
>
> Hope this helps.

Right, and we're not trying to reinvent any wheels, just get a
user-readable string in there while still retaining uniqueness. Ie, it
would probably be enough if org-id-prefix could be set to 'entry, and
org then generated a prefix by munging the entry text:

* My Great Header
  :PROPERITIES:
  :ID: my-great-header-44d1-b804-d11657131237
  :END:




reply via email to

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