From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: CUSTOM_ID vs ID Date: Sun, 28 Jul 2019 10:10:01 +0200 Message-ID: <87k1c2mvfq.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57973) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hreFr-00038N-QW for emacs-orgmode@gnu.org; Sun, 28 Jul 2019 04:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hreFq-00043x-TB for emacs-orgmode@gnu.org; Sun, 28 Jul 2019 04:10:07 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:56987) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hreFq-00040x-Mp for emacs-orgmode@gnu.org; Sun, 28 Jul 2019 04:10:06 -0400 In-Reply-To: (Nathan Neff's message of "Sat, 27 Jul 2019 18:35:41 -0500") 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 Hello, 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. 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. FWIW, I never use ID property. Regards, -- Nicolas Goaziou