org-element: Use `org-latex-regexps', not `org-format-latex-options'
commitff172be293bb3408fceefb27ac75716878182aae
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 24 Oct 2013 15:15:23 +0000 (24 17:15 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 24 Oct 2013 15:15:23 +0000 (24 17:15 +0200)
tree16f79c689dd867c03a0ff8081fdfa89f9e8f59e4
parent6541e1632f51b4ade0c9318f756f10b5af455bc9
org-element: Use `org-latex-regexps', not `org-format-latex-options'

* lisp/org-element.el (org-element-latex-or-entity-successor,
  org-element-latex-fragment-parser): Use `org-latex-regexps' instead
  of `org-format-latex-options'.
* testing/lisp/test-org-element.el: Fix tests.

`org-latex-regexps' defines the correct syntax for LaTeX code within
an Org buffer.  On the other hand, `org-format-latex-options'
determines which syntax can be previewed within the buffer.
lisp/org-element.el
testing/lisp/test-org-element.el