org-element: Add :parent text property to strings in parse tree
commit95c305490e0be46f8be13b0b88a1989feee65508
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 25 Oct 2012 19:33:57 +0000 (25 21:33 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 27 Oct 2012 09:42:30 +0000 (27 11:42 +0200)
tree0043a8834bab899486e036c43da467d51b2ee31f
parent7221b88f6d4145d007ecc229d220e5e99709c33b
org-element: Add :parent text property to strings in parse tree

* lisp/org-element.el (org-element-property): Access to text
  properties when argument is a string.
(org-element-put-property): Correctly set property when target is
a string.
(org-element-adopt-elements): Also put :parent properties on strings.
* testing/lisp/test-org-element.el: Add test.
lisp/org-element.el
testing/lisp/test-org-element.el