From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: "Autoloading failed to define function org-babel-do-load-languages"
Date: Tue, 16 May 2017 18:32:35 +0200 [thread overview]
Message-ID: <2017-05-16T18-19-46@devnull.Karl-Voit.at> (raw)
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/
next reply other threads:[~2017-05-16 18:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 16:32 Karl Voit [this message]
2017-05-22 13:19 ` "Autoloading failed to define function org-babel-do-load-languages" Karl Voit
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=2017-05-16T18-19-46@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/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).