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 07:54:56 -0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux)

Karl Voit <address@hidden> writes:

> * John Kitchin <address@hidden> wrote:
>>
>> There is not an issue using a human-readable id in :ID: as long as it is
>> unique. It will store fine, link fine, etc...
>
> I also think so because I am only using human-readable :ID: without
> any issue so far.
>
> However, the argument was that no human should set :ID: but use
> :CUSTOM_ID: *instead*. See also the old thread I linked before.
>
> I'd prefer using manually written :ID: instead since migration would
> not be trivial to me.

You could also use the `org-property-set-functions-alist' trick with the
:ID: property. If you added an "ID" entry to that alist, Org's usual
automatic id creation would be unaffected, but if you set ID manually,
you could write a function that would first prompt for your
human-readable string, then check for ID uniqueness and append random
characters to your string until it was unique. I think that would be a
nice addition to org-id.el.

Eric




reply via email to

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