org-element: Fix section parsing
commit8d09d1aaa9534d63d40f27c79737ab89664b4e3b
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 1 Sep 2012 20:52:43 +0000 (1 22:52 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 1 Sep 2012 20:55:31 +0000 (1 22:55 +0200)
tree712e434dc52cdf29b669c31f138e6538afdc9517
parent4026f2e3addc603531bf5a7f04307eff6bd0eda6
org-element: Fix section parsing

* lisp/org-element.el (org-element-section-parser): Make sure section
  cannot contain an headline.
(org-element--current-element): Fix bug requiring to parse a quote
section even when point is at an headline.
* testing/lisp/test-org-element.el: Add test.
lisp/org-element.el
testing/lisp/test-org-element.el