]> code.delx.au - gnu-emacs/blobdiff - lisp/org/ox-odt.el
* lisp/font-lock.el (font-lock-flush, font-lock-ensure): New functions.
[gnu-emacs] / lisp / org / ox-odt.el
index 772017cdd0c2073d79fe339cc249b1d05ed44d00..49be3bcb01529fabeaf3b13ebe5100d310f97a76 100644 (file)
@@ -3127,7 +3127,7 @@ and prefix with \"OrgSrc\".  For example,
                 (with-temp-buffer
                   (insert code)
                   (funcall lang-mode)
-                  (font-lock-fontify-buffer)
+                  (org-font-lock-ensure)
                   (buffer-string))))
         (fontifier (if use-htmlfontify-p 'org-odt-htmlfontify-string
                      'org-odt--encode-plain-text))