From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: babel perl issue Date: Mon, 10 Dec 2012 08:11:37 -0700 Message-ID: <87vcca9bxw.fsf@gmail.com> References: <87a9tntr29.fsf@Rainer.invalid> <87sj7fp7om.fsf@gmail.com> <87wqwrrml2.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ti53t-0003NZ-TT for emacs-orgmode@gnu.org; Mon, 10 Dec 2012 10:14:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ti53n-0006mk-3i for emacs-orgmode@gnu.org; Mon, 10 Dec 2012 10:14:29 -0500 Received: from mail-ie0-f177.google.com ([209.85.223.177]:47943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ti53n-0006mV-0O for emacs-orgmode@gnu.org; Mon, 10 Dec 2012 10:14:23 -0500 Received: by mail-ie0-f177.google.com with SMTP id k13so11444781iea.22 for ; Mon, 10 Dec 2012 07:14:22 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Eric Schulte writes: >> See http://orgmode.org/manual/Languages.html for the documentation on >> how to activate and disable org-babel languages. > > That actually produces the error: > > File mode specification error: (void-variable org-babel-tangle-lang-exts) > > as the OP has found out (and I can reproduce it). > Using this method of requiring languages, ;; emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) Works for me without issue when called from a fresh emacs (-Q). This is the recommended way of adding support for a new language and should work for the OP. > > The reason is that none of the ob-.el files do a (require > ob-tangle), but try to change a defcustom in ob.tangle.el that is only > declared, but not yet available at the time. The two fixes seem to be either to either (1) add (require 'ob-tangle) to all current and new language specific files, or (2) merge ob-tangle into ob.el, so that they are both loaded by (require 'ob). It is unfortunate that because of the recursive require there is no way to separate a single require'd entity across multiple files. Option (2) seems most clean to me. Unless anyone has a better idea I'll make this change. Best, -- Eric Schulte http://cs.unm.edu/~eschulte