From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Andrews Subject: Re: Using org-babel with Scheme Date: Wed, 22 Feb 2012 20:40:54 -0500 Message-ID: References: <87sjicuo27.fsf@gmx.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043086c0526f1104b997bdba Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0NgM-0006ct-J9 for emacs-orgmode@gnu.org; Wed, 22 Feb 2012 20:41:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0NgK-0007PH-Tz for emacs-orgmode@gnu.org; Wed, 22 Feb 2012 20:41:18 -0500 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:34159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0NgK-0007Oz-En for emacs-orgmode@gnu.org; Wed, 22 Feb 2012 20:41:16 -0500 Received: by lamf4 with SMTP id f4so970437lam.0 for ; Wed, 22 Feb 2012 17:41:14 -0800 (PST) In-Reply-To: <87sjicuo27.fsf@gmx.com> 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: Eric Schulte Cc: Emacs orgmode --f46d043086c0526f1104b997bdba Content-Type: text/plain; charset=UTF-8 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? 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/ > > --f46d043086c0526f1104b997bdba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am having both of these issues on Emacs 24.=C2=A0 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 "rac= ket". However, Guile will work if both of those variables hold "g= uile".

Any new developments?

On Wed, Feb 15,= 2012 at 9:33 AM, Eric Schulte <eric.schulte@gmx.com> wrote:
Leo Alekseyev <dnquark@gmail.com> writes:

> Is anyone on the list using a recent org-babel with Scheme? =C2=A0I > recently started working through SICP, and I'm running into issues=
> evaluating scheme src =C2=A0blocks. =C2=A0Org-babel error buffer pops = up with
> "ERROR: Wrong number of arguments to #<primitive-generic displ= ay>",
> and the minibuffer prompts me for a lisp expression. =C2=A0Is there > anything I need to configure beyond =C2=A0 (org-babel-do-load-language= s
> 'org-babel-load-languages =C2=A0'((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
=C2=A0(+ 1 1 1)
#+end_src

#+RESULTS:
: 3

I have guile installed and I have the `scheme-program-name' variable se= t
to "guile elsewhere in my .emacs init. =C2=A0I imagine setting the abo= ve
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. =C2=A0= I
imagine this is unrelated to your problem, but was certainly surprising.
>
> --Leo
>

--
Eric Schulte
http://cs.unm.= edu/~eschulte/


--f46d043086c0526f1104b997bdba--