org-element: Update property drawers parsing
commitae35b8c4ad03bc858c0c64f043c4da7b493c0568
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 13 Sep 2014 20:43:45 +0000 (13 22:43 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 28 Oct 2014 13:23:51 +0000 (28 14:23 +0100)
treef1736eda515819d5fa820a7e4d8346786e713847
parent824faa72552ea4efcd08d5a3b499b9dbc132d172
org-element: Update property drawers parsing

* lisp/org-element.el (org-element--get-node-properties,
  org-element--get-time-properties): New functions.
(org-element-headline-parser, org-element-inlinetask-parser): Use new
functions.
(org-element-property-drawer-parser): Change signature.  Simplify
parsing.
drawer.
(org-element--current-element, org-element--next-mode): Property
drawers are located right after a headline or a planning element.

* testing/lisp/test-org-element.el (test-org-element/drawer-parser,
  test-org-element/node-property,
  test-org-element/property-drawer-interpreter): Update tests.
(test-org-element/property-drawer-parser): Add tests.
* testing/lisp/test-org.el (test-org/indent-line,
  test-org/indent-region, test-org/forward-paragraph,
  test-org/backward-paragraph): Update tests.
lisp/org-element.el
testing/lisp/test-org-element.el
testing/lisp/test-org.el