From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Masterson Subject: Re: CUSTOM_ID vs ID Date: Mon, 29 Jul 2019 04:23:18 +0000 Message-ID: References: <87k1c2mvfq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59401) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrxBz-0007Os-Cr for emacs-orgmode@gnu.org; Mon, 29 Jul 2019 00:23:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrxBy-0003xR-8r for emacs-orgmode@gnu.org; Mon, 29 Jul 2019 00:23:23 -0400 Received: from mail-oln040092005106.outbound.protection.outlook.com ([40.92.5.106]:42915 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hrxBx-0003wG-Gy for emacs-orgmode@gnu.org; Mon, 29 Jul 2019 00:23:22 -0400 In-Reply-To: <87k1c2mvfq.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 28 Jul 2019 10:10:01 +0200") Content-Language: en-US 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: Nathan Neff Cc: emacs-orgmode Nicolas Goaziou writes: > Nathan Neff writes: > >> I've often been confused why org-mode has both a CUSTOM_ID >> and a ID property. I mean, why not just use one or the other name? > > Custom ID are user-defined, and only meaningful in the scope of the > document. Also, they may appear as-is when exported, e.g., as an anchor > in HTML. > > ID are (or should be) generated by Org, and are valid across files, > which means they need to be absolutely unique. Can you talk a little bit about how IDs are generated so that they are absolutely unique? > Org keeps track of ID if `org-id-track-globally' is non-nil (the > default). If this is nil, there is almost no difference between ID and > custom ID. > >> When would I ever have both an ID and a CUSTOM_ID property for >> a heading? > > You may want to refer to a heading from anywhere with id:... but need > a clean anchor in HTML export, for example. IDs sound like something that would be useful for synchronizing information between two (or more) separate Org systems - the ID could be updated whenever a change occurs and then used to determine what needs synchronization. True? -- David