emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <878tvu4qbp.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAAjq1mdhcEpQFxwsg7DrTcT+uqnwHhL1=Y7H3pVvLc_DKoHhhw@mail.gmail.com

Grant Rettke <gcr@wisdomandwonder.com> 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

  reply	other threads:[~2016-08-18  5:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18  4:32 Should a human ever set the ID property? Should a human only ever set the CUSTOM_ID property? Grant Rettke
2016-08-18  5:08 ` Eric Abrahamsen [this message]
2016-08-20 15:43   ` Grant Rettke
2016-08-25  8:50 ` Karl Voit
2016-08-27 19:06   ` Grant Rettke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tvu4qbp.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).