org-src.el (org-src-font-lock-fontify-block): Do not use `font-lock-ensure'

* org-src.el (org-src-font-lock-fontify-block): Use
`font-lock-fontify-buffer' instead of `font-lock-ensure',
otherwise fonts are not displayed for src blocks.

Thanks to Mathäus Meyer for reporting this.
This commit is contained in:
Bastien Guerry 2014-07-28 00:34:55 +02:00
parent 8f3a1f3d22
commit 99f999944e
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ fontification of code blocks see `org-src-fontify-block' and
(delete-region (point-min) (point-max))
(insert string " ") ;; so there's a final property change
(unless (eq major-mode lang-mode) (funcall lang-mode))
(font-lock-ensure)
(font-lock-fontify-buffer)
(setq pos (point-min))
(while (setq next (next-single-property-change pos 'face))
(put-text-property