Bytecode: the value of the character as a variable is empty: org-babel-tangle-lang-exts

Emacs worked very well for me, and then I restarted my computer. Now this block of code does not allow me to load my init files:

(require 'ob-clojure) (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . nil) (R . t) (python . t) (js . t) (scheme . t) (C . t) (clojure . t) (lilypond . t) (octave . t))) 

I do not know why this would be. I got babel to work fine with R before restarting. Now I get the message:

bytecode: the value of the character as a variable is empty: org-babel-tangle-lang-exts

I grep'd a directory for something mentioning org-babel, and only the above expression appeared. This is plus the fact that the rest of the init code that I download, when I get rid of it, makes me think that this code is a problem. But why should org-mode refer to a function that I don't have?

Running emacs -debug-init gave:

Debugger introduced - Lisp error: (void-function org-babel-do-load-languages) (org-babel-do-load-languages โ€‹โ€‹(specify org-babel-load-languages) (quote (..... ...................))) eval-buffer (# load <2 โ†’ nil "/home/kca/.emacs.d/init-org.el" nil t); Buffered Read 3080 load-with-code-conversion ("/home/kca/.emacs.d/init-org.el" "/home/kca/.emacs.d/init-org.el" nil nil) load ("INIT-org") eval-buffer (# nil "/home/kca/.emacs.d/init.el" nil t); Read at buffer position 1464 load-with-code-conversion ("/home/kca/.emacs.d/init.el" "/home/kca/.emacs.d/init.el" tt) load ("/ home /kca/.emacs.d/init "tt) # [nil" \ 205 \ 264

I tried to check if the correct version was downloaded in org-mode:

 Mx load-library org Mx org-version => Org-mode version 7.7 

Here is the code in init.el that loads it:

 (add-to-list 'load-path (concat conf-dir "org-7.7/lisp")) (add-to-list 'load-path (concat conf-dir "org-7.7/contrib/lisp")) 

I am using Emacs 23.2 and Org-7.7. Thank you for your help!

+7
source share
2 answers

Actually, the problem was that I did not understand the instructions of the organizationโ€™s manual. Apparently, I needed to put (require "org-install" and (require "ob-tangle") in my initialization file to get competent programming functions. I'm not sure how I got R to work in Babel before, though Oh, well, that works now! The tip of the hat for edenc is in the channel IR # org-mode.

+9
source

Try rebooting again. Then read the rest here if this does not help ...

Use the binary search of your initialization file to determine which code you are loading.

Make sure the source code ( *.el , not *.elc ) is loaded for the problematic code.

Set debug-on-error not nil , so you get a backtrace that tells you something about the context of the error.

If the error is completely contained in any external package, make sure that all of your files for this package are for the same version of the package.

If the only thing you changed is a restart, there might be a problem in the environment variable. It is assumed that for some reason your variable load-path does not have the correct value, so it does not load all the files you need. Or maybe you moved some code for this package?

NTN. If you start to learn more about the problem.

+2
source

All Articles