org-element: Handle special cases in setter functions
commitceaeb33629c98562bd942f0bb7b0f8067f97d0ce
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 15 Jul 2012 10:25:01 +0000 (15 12:25 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 15 Jul 2012 10:25:09 +0000 (15 12:25 +0200)
tree075770cfabfeba50ed8a694a6861f6977884d399
parent6762c7ea60b39aa5dc25a873cd0ddc4bf84cf884
org-element: Handle special cases in setter functions

* contrib/lisp/org-element.el (org-element-put-property,
  org-element-set-contents): Handle special cases like empty or string
  arguments.
(org-element-parse-secondary-string): Correctly set `:parent' property
in objects within the secondary string if element or object containing
it is provided as an optional argument.
(org-element-parse-elements, org-element-parse-objects): Rewrite
functions using setter functions.
contrib/lisp/org-element.el