Fix infloop when user provides a wrong value for `org-highlight-latex-and-related'
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 27 Feb 2013 09:00:40 +0000 (10:00 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 27 Feb 2013 09:00:40 +0000 (10:00 +0100)
commitc086ea0832b30ff8797eedb270c247043f43abaa
treee3741b2333f7c19c3fe68f4e0366641a856067d3
parent091bf0251454d4a9e00fd7054a25b0097822253a
Fix infloop when user provides a wrong value for `org-highlight-latex-and-related'

* lisp/org.el (org-do-latex-and-related): Fix infloop when user
  provides a wrong value for `org-highlight-latex-and-related'. In
  this case, `org-latex-and-related-regexp' is the empty string and
  generates an infloop since matching it doesn't move point.
lisp/org.el