org-element: Split citations and citation-references objects
commitf28f7f5d051887b0f477c380abe527d1b50d7faa
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 8 Mar 2015 16:12:42 +0000 (8 17:12 +0100)
committerVaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
Tue, 10 Mar 2015 05:15:49 +0000 (10 10:45 +0530)
treee48a7fb406f6e3d00aa837d53cc019a7f9b47061
parentec5469cb5afa0f5dea1bee1123568acc92469a86
org-element: Split citations and citation-references objects

* lisp/org-element.el (org-element-all-objects): Introduce
  `citation-reference' object type.
(org-element-recursive-objects): `citation' is now a recursive object
type.
(org-element-object-restrictions): Set restrictions for `citation' and
`citation-reference'.
(org-element-secondary-value-alist): Introduce new object type.
(org-element-citation-parser, org-element-citation-interpreter):
Update functions.
(org-element-citation-reference-parser,
org-element-citation-reference-interpreter): new functions.
(org-element--object-lex): Update function.

* testing/lisp/test-org-element.el (test-org-element/citation-parser,
  test-org-element/citation-interpreter): Update tests.
(test-org-element/citation-reference-parser): New tests.
lisp/org-element.el
testing/lisp/test-org-element.el