From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Tangling Date: Fri, 09 Apr 2010 09:38:39 -0400 Message-ID: <87k4sgsq3k.fsf@stats.ox.ac.uk> References: 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 1O0EQ8-0002NP-0F for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 09:38:52 -0400 Received: from [140.186.70.92] (port=57827 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0EQ4-0002NH-2x for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 09:38:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0EQ1-0006PJ-JG for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 09:38:47 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:61957) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0EQ1-0006P0-9h for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 09:38:45 -0400 In-Reply-To: (Andrea Crotti's message of "Fri, 09 Apr 2010 11:17:43 +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: Andrea Crotti Cc: emacs-orgmode@gnu.org Hi Andrea, Andrea Crotti writes: > So for my presentation I'm preparing a minimal emacs configuration which > will have > - org-mode/babel > - python mode > - yasnippet/auto complete > > And it will be everything here > http://github.com/AndreaCrotti/Org-mode-notes > > I'm running > Org-mode version 6.34trans > on > GNU Emacs 23.1.50.1 > (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-16 on neutron.local > > But I don't know why I'm not able to tangle anything and then load the > elisp code from an org-mode file. > > ELISP> (org-babel-load-file "/Users/andrea/Documents/pycon/miniconf.org") > *** Eval error *** No buffer named miniconf.org > > But the file is actually there, or like this > ELISP> (org-babel-tangle "/Users/andrea/Documents/pycon/miniconf.org") I think you meant (org-babel-tangle-file "/Users/andrea/Documents/pycon/miniconf.org") here > nil > > And it doesn't export any source even if it looks something like this > > * Org mode > ** Clock configuration > #+begin_src elisp :tangle yes > ;; Clock configuration > (setq org-clock-persist t) > (org-clock-persistence-insinuate) > #+end_src 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 > > Any idea? > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode