org-element: Small optimization to `org-element-context'
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 9 Jan 2013 14:33:29 +0000 (15:33 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 9 Jan 2013 14:33:29 +0000 (15:33 +0100)
commit2fd88bfd5675fc78a2297c2a1544a66c1a86af75
treeb9204ae0723aa184c3a7fe620bfb5da2f4d0168d
parent1dd1b10d5a908ef302b76838931aefdab2d05f34
org-element: Small optimization to `org-element-context'

* lisp/org-element.el (org-element-context): Add an optional argument
  so (org-element-context)
  and (org-element-context (org-element-at-point)) are equivalent.
* testing/lisp/test-org-element.el: Add test.
lisp/org-element.el
testing/lisp/test-org-element.el