emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "Autoloading failed to define function org-babel-do-load-languages"
@ 2017-05-16 16:32 Karl Voit
  2017-05-22 13:19 ` Karl Voit
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Voit @ 2017-05-16 16:32 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I'm in the process of switching from ~/.emacs.d/init.el to
~/.emacs.d/config.org using the method described on [1].

Org-mode from maint Git repository overruled via following lines
right at the top of my ~/.emacs.d/init.el:
| (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/lisp")
| (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/contrib/lisp" t)

All I did was moving the working elisp configuration into multiple
emacs-lisp blocks. So the content of config.org/config.el should be
OK.

When I start emacs, I got following error:

| Debugger entered--Lisp error: (error "Autoloading failed to define function org-babel-do-load-languages")
|   (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((python . t) (shell . t) (org . t) (emacs-lisp . t) (sql . t) (restclient . t))))
|   (progn (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((python . t) (shell . t) (org . t) (emacs-lisp . t) (sql . t) (restclient . t)))))
|   (if (my-system-type-is-windows) (progn (org-babel-do-load-languages (quote org-babel-load-languages) (quote ((python . t) (shell . t) (org . t) (emacs-lisp . t) (sql . t) (restclient . t))))))
|   eval-buffer(#<buffer  *load*-731047> nil "c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" nil t)  ; Reading at buffer position 136983
|   load-with-code-conversion("c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" "c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" nil nil)
|   load("c:/Users/karl.voit/AppData/Roaming/.emacs.d/config.el" nil nil t)
|   load-file("~/.emacs.d/config.el")
|   (let ((orgfile (concat my-user-emacs-directory "config.org")) (elfile (concat my-user-emacs-directory "config.el")) (gc-cons-threshold most-positive-fixnum)) (if (or (not (file-exists-p elfile)) (file-newer-than-file-p orgfile elfile)) (progn (my-tangle-config-org) (save-buffers-kill-emacs))) (load-file elfile))
|   eval-buffer(#<buffer  *load*> nil "c:/Users/karl.voit/AppData/Roaming/.emacs.d/init.el" nil t)  ; Reading at buffer position 3295
|   load-with-code-conversion("c:/Users/karl.voit/AppData/Roaming/.emacs.d/init.el" "c:/Users/karl.voit/AppData/Roaming/.emacs.d/init.el" t t)
|   load("c:/Users/karl.voit/AppData/Roaming/.emacs.d/init" t t)
|   #[0 \205\262

I get it with Debian GNU/Linux stable with latest emacs-snapshot,
Xubuntu 16.04 with its emacs, and with Emacs 24.5 on Windows. The
latter produced the message above, obviously.

The code that causes the error seems to be:

| (org-babel-do-load-languages
|    'org-babel-load-languages
|    '(
|      (python . t)
|      (shell . t)
|      (org . t)
|      (emacs-lisp . t)
|      (sql . t)
|      (restclient . t)
|      ))

A rough guess is that Emacs is using the built-in Org-mode to load
the config.el. I can not confirm this because "M-x org-version"
results in "command-execute: Autoloading failed to define function
org-version".

Do you have any tip for me?

[1] http://www.holgerschurig.de/en/emacs-init-tangle/
    and https://bitbucket.org/holgerschurig/emacsconf/src

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "Autoloading failed to define function org-babel-do-load-languages"
  2017-05-16 16:32 "Autoloading failed to define function org-babel-do-load-languages" Karl Voit
@ 2017-05-22 13:19 ` Karl Voit
  0 siblings, 0 replies; 2+ messages in thread
From: Karl Voit @ 2017-05-22 13:19 UTC (permalink / raw)
  To: emacs-orgmode

* Karl Voit <devnull@Karl-Voit.at> wrote:
>
> Org-mode from maint Git repository overruled via following lines
> right at the top of my ~/.emacs.d/init.el:
>| (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/lisp")
>| (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/contrib/lisp" t)
>
> When I start emacs, I got following error:
>
>| Debugger entered--Lisp error: (error "Autoloading failed to define function org-babel-do-load-languages")

Somehow the error was provoked with an accidentally installed very
old version of Org-mode from Melpa. After deleting the Melpa folder,
the code worked fine.

Sorry for the fuzz.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-22 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16 16:32 "Autoloading failed to define function org-babel-do-load-languages" Karl Voit
2017-05-22 13:19 ` Karl Voit

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