emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-element approach to modify or add ID to every headline


From: Grant Rettke
Subject: [O] org-element approach to modify or add ID to every headline
Date: Sat, 8 Aug 2015 22:01:12 -0500

Good evening,

Emacs 24.4 and Org from Git.

Goal:

1) Visit every headline
2) If there is an ID property
   1) Then replace it's value with a UUID
3) If there is not an ID property
   1) Add an ID property and give it a UUID.

`org-uuid' [provides] the functionality to add the ID with a UUID.

[This post] explains how to do it:

┌────
│ (require 'org-id)
│    (save-excursion
│       (goto-char (point-max))
│       (while (outline-previous-heading)
│         (org-id-get-create)))
└────

What is the best way to do it with `org-element'?


[provides]
http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=lisp/org-id.el;hb=HEAD

[This post]
https://stackoverflow.com/questions/13340616/assign-ids-to-every-entry-in-org-mode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]