From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Crotti Subject: Re: Tangling Date: Sun, 11 Apr 2010 14:22:37 +0200 Message-ID: References: <87k4sgsq3k.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0wBl-0001EG-1s for emacs-orgmode@gnu.org; Sun, 11 Apr 2010 08:22:57 -0400 Received: from [140.186.70.92] (port=54601 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0wBj-0001Dj-M0 for emacs-orgmode@gnu.org; Sun, 11 Apr 2010 08:22:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0wBi-00077d-42 for emacs-orgmode@gnu.org; Sun, 11 Apr 2010 08:22:55 -0400 Received: from lo.gmane.org ([80.91.229.12]:60027) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0wBh-00077C-PP for emacs-orgmode@gnu.org; Sun, 11 Apr 2010 08:22:54 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O0wBc-0000po-Uc for emacs-orgmode@gnu.org; Sun, 11 Apr 2010 14:22:48 +0200 Received: from xdsl-78-35-133-173.netcologne.de ([78.35.133.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Apr 2010 14:22:48 +0200 Received: from andrea.crotti.0 by xdsl-78-35-133-173.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Apr 2010 14:22:48 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dan Davison writes: > > here > > Although Org maps "elisp" to emacs-lisp-mode in org-src-lang-modes > (therefore C-c ' works), Org-babel currently does not recognise "elisp" > by default. Thanks for raising this, I think we need to make ourselves > more compatible with org-src-lang-modes. > > So the short answer is: change "elisp" to "emacs-lisp". > > The longer answer is, you could do > > (org-babel-add-interpreter "elisp") > (add-to-list 'org-babel-tangle-langs '("elisp" "el")) > > But you (we) 'll still be faced with the problem that org-babel-load-file > expects the blocks to be "emacs-lisp" blocks. org-babel-tangle-file, on > the other hand, will work. > > Does that get things working? > > Dan Yes thanks a lot I was doing a stupid mistake, in other files I always used emacs-lisp. But if it will be aliased even better (I could do it myself but I've made a snippet for it so I won't forget again)... So now I have a strange behaviour, sometimes the file is loaded and sometimes is not This is the init file: --8<---------------cut here---------------start------------->8--- (setq base "~/Documents/pycon/") (setq conf (concat base "conf/")) (add-to-list 'load-path (concat conf "org-mode/lisp")) (add-to-list 'load-path (concat conf "org-mode/contrib/babel/lisp")) (require 'org) (require 'org-babel) (require 'org-babel-tangle) (org-babel-tangle-file (concat base "miniconf.org")) --8<---------------cut here---------------end--------------->8--- The tangling works perfectly fine on my "real" emacs conf, but with the testing configuration I get sometimes (don't understand why sometimes it works this) http://gist.github.com/362682 And is short Debugger entered--Lisp error: (void-function -mode) What is that supposed to mean? Just some stupid mistake again? The file to load is http://github.com/AndreaCrotti/Org-mode-notes/blob/master/miniconf.org but I guess that's correct because on one emacs it works perfectly fine