org-element: Make properties parsing more robust
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Aug 2014 09:10:56 +0000 (11:10 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Aug 2014 09:10:56 +0000 (11:10 +0200)
commit37bf0576f2f2894c6e37239ee8db63a3ef21a840
tree35bc65aa97768cf1281f19de85d38275191f1c9f
parent2e5b3dede103bba0071144ec7b7fc250471c1463
org-element: Make properties parsing more robust

* lisp/org-element.el (org-element-property-drawer-parser,
  org-element-node-property-parser): Ignore lines that are not node
  properties.
(org-element-node-property-interpreter): Allow nil properties.

* lisp/org.el (org-re-property): Fix regexp to match properties with
  empty values.

* testing/lisp/test-org-element.el (test-org-element/node-property):
  Add tests.

Thanks to Eike for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90293
lisp/org-element.el
lisp/org.el
testing/lisp/test-org-element.el