From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Corneli Subject: Bug: babel config - org-mode fontification error [8.2.10 (release_8.2.10 @ /home/joe/org-mode/lisp/)] Date: Sat, 09 May 2015 11:00:02 +0100 Message-ID: <87fv76yst9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr1YL-0005Eq-DB for emacs-orgmode@gnu.org; Sat, 09 May 2015 06:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yr1YG-0003tj-Or for emacs-orgmode@gnu.org; Sat, 09 May 2015 06:00:13 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:35544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr1YG-0003tH-Hq for emacs-orgmode@gnu.org; Sat, 09 May 2015 06:00:08 -0400 Received: by widdi4 with SMTP id di4so55167207wid.0 for ; Sat, 09 May 2015 03:00:07 -0700 (PDT) Received: from Teacup (cpc2-flit3-2-0-cust79.9-1.cable.virginm.net. [213.105.32.80]) by mx.google.com with ESMTPSA id v3sm3060191wix.8.2015.05.09.03.00.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 May 2015 03:00:05 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello: I have Cider and Clojure Mode installed from Elpa, with Org mode fresh from Git as of today (May 9, 2015). I've provided files below to replicate a bug in babel fontification behavior, having to do with which order things are loaded in. If you save the files below, and run emacs -Q -l ~/.emacs-config test.org then you will see a message about an "org-mode fontification error". If you edit the .emacs-config file, moving the line (add-to-list 'load-path "~/org-mode/lisp/") to before the (require 'cider) line, then you don't see the error and fontification behavior is as expected. == test.org ==================================================================== #+BEGIN_SRC emacs-lisp (defun foo () 0) #+END_SRC #+BEGIN_SRC clojure (defn bar [] (fn [x] 1)) #+END_SRC ================================================================================ == .emacs-config =============================================================== (when (>= emacs-major-version 24) (require 'package) (package-initialize) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) ) (require 'cider) (require 'clojure-mode) ;; Problematic line (add-to-list 'load-path "~/org-mode/lisp/") (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((clojure . t) (emacs-lisp . t))) (require 'ob-clojure) (setq org-babel-clojure-backend 'cider) (setq org-src-fontify-natively t) ================================================================================ Emacs : GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of 2015-04-14 on Teacup Package: Org-mode version 8.2.10 (release_8.2.10 @ /home/joe/org-mode/lisp/)