emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: babel config - org-mode fontification error [8.2.10 (release_8.2.10 @ /home/joe/org-mode/lisp/)]
@ 2015-05-09 10:00 Joe Corneli
  0 siblings, 0 replies; only message in thread
From: Joe Corneli @ 2015-05-09 10:00 UTC (permalink / raw)
  To: emacs-orgmode

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/)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-09 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-09 10:00 Bug: babel config - org-mode fontification error [8.2.10 (release_8.2.10 @ /home/joe/org-mode/lisp/)] Joe Corneli

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).