emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joe Corneli <holtzermann17@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87fv76yst9.fsf@gmail.com> (raw)

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

                 reply	other threads:[~2015-05-09 10:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fv76yst9.fsf@gmail.com \
    --to=holtzermann17@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).