From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Skip source block fontification when the language is not defined Date: Tue, 21 Dec 2010 23:06:17 -0500 Message-ID: <1292990777-10733-1-git-send-email-bernt@norang.ca> References: <87r5da1mvr.fsf@norang.ca> Return-path: Received: from [140.186.70.92] (port=35770 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVFy4-0006vx-Tq for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 23:06:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVFy3-00038b-Ic for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 23:06:24 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:25618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVFy3-00038V-FQ for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 23:06:23 -0500 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1PVFy3-0009J1-4y for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 04:06:23 +0000 In-Reply-To: <87r5da1mvr.fsf@norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Bernt Hansen * lisp/org.el: Skip source block fontification during export when language is not defined --- This may not be the correct fix for this issue but it works for me. This patch is available at git://git.norang.ca/org-mode.git fix-export -Bernt lisp/org.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 3cecca7..006e7bf 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5142,7 +5142,7 @@ will be prompted for." (add-text-properties end1 (+ end 1) '(face org-meta-line)) ; for end_src (cond - ((and lang org-src-fontify-natively) + ((and lang (not (string-equal lang "")) org-src-fontify-natively) (org-src-font-lock-fontify-block lang block-start block-end)) (quoting (add-text-properties beg1 (+ end1 1) '(face -- 1.7.3.3.464.gf80b6