From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Using org-babel with Scheme Date: Sat, 25 Feb 2012 09:41:13 -0700 Message-ID: <87obsmg8ve.fsf@gmx.com> References: <87sjicuo27.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1KkJ-0003Vh-7s for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 11:45:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1KkE-0006S5-Ce for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 11:45:19 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:41663) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S1KkE-0006S0-6J for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 11:45:14 -0500 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: Kyle Andrews Cc: Emacs orgmode Kyle Andrews writes: > I am having both of these issues on Emacs 24. Emacs crashes sometimes on > geiser and babel won't evaluate scheme code as Racket code despite setting > 'scheme-program-name and 'org-babel-scheme-cmd to "racket". However, Guile > will work if both of those variables hold "guile". > > Any new developments? > I haven't had time to look into this. I imagine the first issue is a problem with Geiser. As for the second issue, note that the value of the 'org-babel-scheme-cmd variable is only used when external execution is requested (e.g., when session is set to "none"), otherwise session evaluation is used (likely using Geiser if Geiser is installed). Sorry I do not have more time to look into this at the moment. I you feel like looking to the code, a good starting place would be to run the command `edebug-eval-top-level-form' within the definition of `org-babel-execute:scheme' in ob-scheme.el, then running a code block and stepping through its evaluation. Best, > > On Wed, Feb 15, 2012 at 9:33 AM, Eric Schulte wrote: > >> Leo Alekseyev writes: >> >> > Is anyone on the list using a recent org-babel with Scheme? I >> > recently started working through SICP, and I'm running into issues >> > evaluating scheme src blocks. Org-babel error buffer pops up with >> > "ERROR: Wrong number of arguments to #", >> > and the minibuffer prompts me for a lisp expression. Is there >> > anything I need to configure beyond (org-babel-do-load-languages >> > 'org-babel-load-languages '((scheme . t)))? >> > >> > (Running latest org from git in Emacs 24; have Chicken scheme and >> > guile installed). >> > >> >> I loaded the ob-scheme.el directly (which should be the same as loading >> it with org-babel-do-load-languages as above) and the following works >> for me. >> >> #+begin_src scheme >> (+ 1 1 1) >> #+end_src >> >> #+RESULTS: >> : 3 >> >> I have guile installed and I have the `scheme-program-name' variable set >> to "guile elsewhere in my .emacs init. I imagine setting the above >> variable should enable scheme evaluation. >> >> Best, >> >> while looking into this I did notice that when launching Geiser (a nice >> slime-like scheme evaluator) I would sometimes crash my entire Emacs >> process by pressing C-g when Geiser prompts for a scheme executable. I >> imagine this is unrelated to your problem, but was certainly surprising. >> >> > >> > --Leo >> > >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ >> >> -- Eric Schulte http://cs.unm.edu/~eschulte/