From bde1b2f94293f902a4d26dc8446655fe8c8e163f Mon Sep 17 00:00:00 2001 From: Mark Shoulson Date: Wed, 23 May 2012 20:17:40 -0400 Subject: [PATCH] Fix for displaying entities ending in a number * lisp/org.el (org-fontify-entities): Fix bug: The entities \sup[123] and \there4 were not "prettified" when org-pretty-entities was enabled. TINYCHANGE --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index a2e5387f0..3d15e72f2 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5966,7 +5966,7 @@ needs to be inserted at a specific position in the font-lock sequence.") (when org-pretty-entities (catch 'match (while (re-search-forward - "\\\\\\(frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)" + "\\\\\\(there4\\|sup[123]\\|frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)" limit t) (if (and (not (org-in-indented-comment-line)) (setq ee (org-entity-get (match-string 1)))