emacs-orgmode
[Top][All Lists]
Advanced

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

[O] How to visit every source block and modify it's NAME property with o


From: Grant Rettke
Subject: [O] How to visit every source block and modify it's NAME property with org-element?
Date: Sat, 8 Aug 2015 22:06:13 -0500

Good evening,

Emacs 24.4 and Org from Git.

Goal:

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

`org-uuid' [provides] the functionality to create a UUID. It seems like
this could be re-used for this NAME property. Would that be a good idea?
The code would be nearly the same (choose a UUID program, get a value,
insert it).

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

This is very similar to a post I just made about headlines and the ID
property but they are different enough to post separately.


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



reply via email to

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