From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Properties ID vs. CUSTOM_ID Date: Thu, 22 Dec 2016 13:40:05 -0800 Message-ID: <87a8bnzlqi.fsf@ericabrahamsen.net> References: <2016-08-25T14-36-57@devnull.Karl-Voit.at> <877fb429j4.fsf@saiph.selenimh> <2016-08-25T17-05-15@devnull.Karl-Voit.at> <87mvg2t8g0.fsf@artlab.createcnix.lan> <2016-12-12T12-38-45@devnull.Karl-Voit.at> <2016-12-12T15-59-38@devnull.Karl-Voit.at> <2016-12-18T13-12-13@devnull.Karl-Voit.at> <2016-12-20T20-43-27@devnull.Karl-Voit.at> <2016-12-22T11-00-17@devnull.Karl-Voit.at> <2016-12-22T16-27-34@devnull.Karl-Voit.at> <87mvfoc627.fsf@ericabrahamsen.net> <874m1voii4.fsf@artlab.createcnix.lan> <87k2arznhu.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKB6E-0004ET-VR for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 16:40:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKB6B-0007Wn-Tt for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 16:40:31 -0500 Received: from [195.159.176.226] (port=60802 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cKB6B-0007Vf-FL for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 16:40:27 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cKB5y-0006Od-Lj for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 22:40:14 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Carsten Dominik 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: