From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: "Autoloading failed to define function org-babel-do-load-languages" Date: Tue, 16 May 2017 18:32:35 +0200 Message-ID: <2017-05-16T18-19-46@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAhQf-0007xN-7a for emacs-orgmode@gnu.org; Tue, 16 May 2017 14:42:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAhQc-0006D1-1j for emacs-orgmode@gnu.org; Tue, 16 May 2017 14:42:41 -0400 Received: from [195.159.176.226] (port=34999 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAhQb-0006Cs-Qw for emacs-orgmode@gnu.org; Tue, 16 May 2017 14:42:37 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dAfOo-0002RN-EM for emacs-orgmode@gnu.org; Tue, 16 May 2017 18:32:38 +0200 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" To: emacs-orgmode@gnu.org 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(# 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(# 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/