emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to visit every source block and modify it's NAME property with org-element?
@ 2015-08-09  3:06 Grant Rettke
  2015-08-09  8:12 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Rettke @ 2015-08-09  3:06 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-10 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-09  3:06 How to visit every source block and modify it's NAME property with org-element? Grant Rettke
2015-08-09  8:12 ` Nicolas Goaziou
2015-08-10  1:28   ` Grant Rettke
2015-08-10 20:59     ` Grant Rettke

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).