org-element: Add a new greater element (section)
commitdaef88b0a8d55625c1911ba1bf6d5db822bd02f8
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 8 Jan 2012 11:28:53 +0000 (8 12:28 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 8 Jan 2012 11:50:29 +0000 (8 12:50 +0100)
tree6324491f70b93004a726e63466ba3cf406aacf47
parentced1878fe4857c5d0155a7b4610e09340b781c3f
org-element: Add a new greater element (section)

* contrib/lisp/org-element.el (org-element-section-parser,
  org-element-section-interpreter): New functions
(org-element-greater-elements): Add new element to the list.
(org-element-at-point): Change arguments to handle a new section mode.
(org-element-guess-type): Accept an optional argument to look for
  sections in priority.
(org-element-parse-buffer): Start in section mode by default.  Thus
  any text before the first headline is still in a section of his
  own.
(org-element-parse-elements): Handle new section mode.
contrib/lisp/org-element.el