emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup
@ 2013-03-25  0:41 Trevor Murphy
  2013-03-25  5:54 ` Bastien
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Trevor Murphy @ 2013-03-25  0:41 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

Hi, all. First bug report here, so please let me know if I can be more
helpful / less verose. I didn't see this previously reported on the mailing
list and I'm not yet familiar enough to patch it myself.

After updating, I'm receiving the error in the subject line. For reference,
I'm running Arch and am using the latest org from elpa. So:

Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.6.4)
 of 2013-03-18 on eric
Package: Org-mode version 7.9.4 (7.9.4-elpa @
/home/trevor/.emacs.d/elpa/org-20130318/)

To produce the error, I start a fresh instance with emacs -Q, then run the
following:

(add-to-list 'load-path "/home/trevor/.emacs.d/elpa/org-20130318/")
(setq org-babel-load-languages '((python . t))) ; also works with latex, C,
ruby, at which point I got bored
(require 'org)

I expect this to load just fine, but instead I receive a backtrace that
freaks out at line #39 in ob-python.el (similarly for other language
examples):

38     (defvar org-babel-tangle-lang-exts)
39     (add-to-list 'org-babel-tangle-lang-exts '("python" . "py"))
40

Seems that the defvar counts for nothing? Perhaps because it's already a
defcustom in ob-tangle.el? I don't understand emacs well enough to know,
but I will say that inserting a "(require 'ob-tangle)" anywhere before the
offending line "solves" the problem.

Trev

[-- Attachment #2: Type: text/html, Size: 1840 bytes --]

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

* Re: Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup
  2013-03-25  0:41 Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup Trevor Murphy
@ 2013-03-25  5:54 ` Bastien
  2013-03-25  8:47 ` Andreas Röhler
  2013-03-25  9:05 ` Achim Gratz
  2 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2013-03-25  5:54 UTC (permalink / raw)
  To: Trevor Murphy; +Cc: emacs-orgmode

Hi Trevor,

Trevor Murphy <trevor.m.murphy@gmail.com> writes:

> To produce the error, I start a fresh instance with emacs -Q, then
> run the following:
>
> (add-to-list 'load-path "/home/trevor/.emacs.d/elpa/org-20130318/")

(package-initialize)

early in your .emacs should be enough to set the load-paths correctly
and to load Org from ELPA.

> (setq org-babel-load-languages '((python . t))) ; also works with
> latex, C, ruby, at which point I got bored
> (require 'org)

Please try the above and let us know.

Thanks,

-- 
 Bastien

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

* Re: Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup
  2013-03-25  0:41 Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup Trevor Murphy
  2013-03-25  5:54 ` Bastien
@ 2013-03-25  8:47 ` Andreas Röhler
  2013-03-25  9:05 ` Achim Gratz
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2013-03-25  8:47 UTC (permalink / raw)
  To: emacs-orgmode

Am 25.03.2013 01:41, schrieb Trevor Murphy:

>
> Seems that the defvar counts for nothing?

Hi,

probably defvar here only makes sure the symbol exists, in case the macro defcustom failed -
for example for wrong settings.

Andreas

  Perhaps because it's already a
> defcustom in ob-tangle.el? I don't understand emacs well enough to know,
> but I will say that inserting a "(require 'ob-tangle)" anywhere before the
> offending line "solves" the problem.
>
> Trev
>

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

* Re: Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup
  2013-03-25  0:41 Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup Trevor Murphy
  2013-03-25  5:54 ` Bastien
  2013-03-25  8:47 ` Andreas Röhler
@ 2013-03-25  9:05 ` Achim Gratz
  2 siblings, 0 replies; 4+ messages in thread
From: Achim Gratz @ 2013-03-25  9:05 UTC (permalink / raw)
  To: emacs-orgmode

Am 25.03.2013 01:41, schrieb Trevor Murphy:
> (add-to-list 'load-path "/home/trevor/.emacs.d/elpa/org-20130318/")

Don't do this with Org from ELPA, I don't think it will work.  Try 
'(package-initialize)' instead.

> Seems that the defvar counts for nothing? Perhaps because it's already a
> defcustom in ob-tangle.el? I don't understand emacs well enough to know,
> but I will say that inserting a "(require 'ob-tangle)" anywhere before the
> offending line "solves" the problem.

You are missing the autoloads and the defcustom definitions because the 
package hasn't been initialized.


Regards,
-- 
Achim.

(on the road :-)

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

end of thread, other threads:[~2013-03-25  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-25  0:41 Bug: "Lisp error: (void-variable org-babel-tangle-lang-exts)" when loading languages at startup Trevor Murphy
2013-03-25  5:54 ` Bastien
2013-03-25  8:47 ` Andreas Röhler
2013-03-25  9:05 ` Achim Gratz

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