org-element: Fix $...$ fragments followed by an apostrophe
commitc0369a798470763f8f3c69cf2079c3a194635feb
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 13 May 2017 07:18:07 +0000 (13 09:18 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 13 May 2017 07:18:07 +0000 (13 09:18 +0200)
treea3105d47283c8c181b3a2903e3d1be6198d82224
parent02555387011c0d10575a425132525c78c1ac459d
org-element: Fix $...$ fragments followed by an apostrophe

* lisp/org-element.el (org-element-latex-fragment-parser):
* lisp/org.el (org-latex-regexps): Allow an apostrophe right after
  a fragment.

* testing/lisp/test-org-element.el (test-org-element/latex-fragment-parser):
  Add test.

In Text mode, and, as a consequence, in Org mode, "'" is not treated
as punctuation, but as word constituent.  The apostrophe isn't caught
by "\s." regexp.

Reported-by: Joe Corneli <holtzermann17@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113464>
lisp/org-element.el
lisp/org.el
testing/lisp/test-org-element.el