From 627d5733be37c5feabc5fc219c31ea2539312752 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 12 Dec 2012 23:16:51 +0100 Subject: [PATCH] org-e-html: Small refactoring * contrib/lisp/org-e-html.el (org-e-html-fontify-code): Activating major mode before inserting contents avoid problem of initial visibility for an Org buffer. --- contrib/lisp/org-e-html.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el index 614557529..ce71769ae 100644 --- a/contrib/lisp/org-e-html.el +++ b/contrib/lisp/org-e-html.el @@ -1484,12 +1484,9 @@ is the language used for CODE, as a string, or nil." (t ;; htmlize (setq code (with-temp-buffer - (insert code) ;; Switch to language-specific mode. (funcall lang-mode) - ;; "Org" as language. Be sure to disclose - ;; everything when activating the major mode. - (when (eq lang-mode 'org-mode) (org-cycle '(64))) + (insert code) ;; Fontify buffer. (font-lock-fontify-buffer) ;; Remove formatting on newline characters. -- 2.11.4.GIT