mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-22 17:10:43 +00:00
baed7dc7db
* lisp/org-element.el (org-element-center-block-parser, org-element-drawer-parser, org-element-dynamic-block-parser, org-element-footnote-definition-parser, org-element-plain-list-parser, org-element-quote-block-parser, org-element-special-block-parser, org-element-babel-call-parser, org-element-comment-parser, org-element-comment-block-parser, org-element-example-block-parser, org-element-export-block-parser, org-element-fixed-width-parser, org-element-horizontal-rule-parser, org-element-keyword-parser, org-element-latex-environment-parser, org-element-paragraph-parser, org-element-property-drawer-parser, org-element-src-block-parser, org-element-table-parser, org-element-verse-block-parser): Change signature. Now use an additional argument: affiliated. (org-element--current-element): Skip affiliated keywords and pass them as an argument to parsers. It prevents to walk through these keywords twice: the first time to get to the first line of the element, and a second time to collect the affiliated keywords. * contrib/lisp/org-export.el (org-export-get-caption): Update function since multiple affiliated keywords are now reversed. * testing/lisp/test-org-element.el: Update tests. |
||
---|---|---|
.. | ||
test-ob-awk.el | ||
test-ob-C.el | ||
test-ob-emacs-lisp.el | ||
test-ob-exp.el | ||
test-ob-fortran.el | ||
test-ob-lilypond.el | ||
test-ob-lob.el | ||
test-ob-maxima.el | ||
test-ob-octave.el | ||
test-ob-python.el | ||
test-ob-R.el | ||
test-ob-sh.el | ||
test-ob-table.el | ||
test-ob-tangle.el | ||
test-ob.el | ||
test-org-element.el | ||
test-org-exp.el | ||
test-org-export.el | ||
test-org-footnote.el | ||
test-org-html.el | ||
test-org-list.el | ||
test-org-table.el | ||
test-org.el | ||
test-property-inheritance.el |