org-element: Extend `org-element-set-element' to strings
commitcd439bc5138fc22a4f2532f90c87629c1deec3e3
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 1 Dec 2013 14:48:54 +0000 (1 15:48 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 1 Dec 2013 16:05:34 +0000 (1 17:05 +0100)
treee10d29ed1aab3d89192becb66d0da800e9669fea
parent798ad3a27e807cff122666a039abd20abd4bc383
org-element: Extend `org-element-set-element' to strings

* lisp/org-element.el (org-element-set-element): Allow to replace
  a string with an element, an element with a string, or a string with
  a string.
lisp/org-element.el
testing/lisp/test-org-element.el