ox: Properly fix internal regexps after each buffer change
commita833d35159fdc07b474fd66f31bb07e1768aeb87
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 23 Jun 2015 21:41:30 +0000 (23 23:41 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 25 Jun 2015 13:09:20 +0000 (25 15:09 +0200)
treee4af3592c6cee0ba9a61788f55fd4fb141cb58ff
parent0b0bbf619442c6716d530c51aefb6e23f5fe8384
ox: Properly fix internal regexps after each buffer change

* lisp/ox.el (org-export-as): Refresh regexps before executing Babel
  code, running last hook and parsing buffer so precomputed regular
  expressions are correct at each of these steps.

This is not necessary before macros since those are not expected to
rely on computed expression.  Actually, advanced macros, i.e. with
"(eval ...)" syntax, could make use of them, but a Babel snippet is
more likely in this situation.

Reported-by: Robert Klein <RoKlein@roklein.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/98550>
lisp/ox.el