From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Should a human ever set the ID property? Should a human only ever set the CUSTOM_ID property? Date: Thu, 18 Aug 2016 13:08:10 +0800 Message-ID: <878tvu4qbp.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baFZ5-00063i-AG for emacs-orgmode@gnu.org; Thu, 18 Aug 2016 01:08:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baFZ1-0004ux-3l for emacs-orgmode@gnu.org; Thu, 18 Aug 2016 01:08:26 -0400 Received: from [195.159.176.226] (port=41485 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baFZ0-0004uc-TN for emacs-orgmode@gnu.org; Thu, 18 Aug 2016 01:08:23 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1baFYt-0003CW-Sr for emacs-orgmode@gnu.org; Thu, 18 Aug 2016 07:08:15 +0200 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 Grant Rettke writes: > Good evening, > > Just learned about CUSTOM_ID property. It seems like if you want to > define a custom identifier, then you do it here and that identifier > will get used correctly in all of the weavers. It also seems like a > human should never set the value of the ID property. > > The reason I ask is that I've got code that makes sure that every > headline has an ID property set unique because org-uuid makes it so > easy. At the time CUSTOM_ID didn't exist. It kind of looks like I > ought to refactor all of it to use CUSTOM_ID because it will "just > work" in the rest of org mode. > > Am I grokking things correctly here? I don't think that's really necessary, why not just continue to use the "regular" built in ID commands? My understanding (and I may be grokking things *incorrectly* here) is that CUSTOM_ID is mostly useful when you expect to be to be typing the ID itself (ie when linking to a headline), or when it's otherwise important that the text of the ID be some precise string, and not a random string. If all you want to do is ensure that all headlines have an ID, I would assume that the regular built-in functions would do the trick just fine. Lots of assumptions there! E