From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Set babel scheme to chicken? Date: Sun, 30 Aug 2015 00:26:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3b9aa90a377051e7c5dab Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVqRw-0006DT-7f for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 20:26:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVqRv-0003dp-3n for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 20:26:20 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:36726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVqRu-0003df-Sf for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 20:26:19 -0400 Received: by labnh1 with SMTP id nh1so26935361lab.3 for ; Sat, 29 Aug 2015 17:26:18 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org --001a11c3b9aa90a377051e7c5dab Content-Type: text/plain; charset=UTF-8 Not sure what the :scheme header argument might be or how to change it. However, changing the geiser-impl--implementation (changed order to make sure) and geiser-default-implementation seemed to do the trick. My bad overlooking this. Thanks, LB On Sat, Aug 29, 2015 at 10:45 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > I have a few schemes installed on my computer (MIT, guile, chicken), but > > when I run such code as this > > > > #+BEGIN_SRC scheme :session one > > (define (myadd x y) > > (+ x y)) > > #+END_SRC > > > > it works -- beautifully with multiple REPLs (as you name them in the > > :session) -- but it always grabs the guile. I'd like it to use chicken > > instead -- or maybe later MIT. I've got latest geiser installed as well > > that should handle chicken. How can I use chicken inside of orgmode > scheme > > code blocks? Wild guess, guile is first on some list, i.e., path? babel > > customize didn't seem to have an entry for which flavor. > > Looking at the code, there is a :scheme header argument that can > indicate what scheme implementation should be used. Otherwise, it > appears to use geiser-impl--implementation, which a comment says is > defined in geiser-impl.el. There is also geiser-default-implementation > and geiser-active-implementations from that same source. > > hth, > Tom > > -- > Thomas S. Dye > http://www.tsdye.com > --001a11c3b9aa90a377051e7c5dab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Not sure what the :scheme header argument might be or how = to change it. However, changing the geiser-impl--implementation (changed or= der to make sure) and=C2=A0geiser-default-implementation seemed to do the t= rick. My bad overlooking this.

Thanks,
LB

On Sat, Au= g 29, 2015 at 10:45 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
=
Aloha Lawrence,

Lawrence Bottorff <borgauf@gmail.co= m> writes:

> I have a few schemes installed on my computer (MIT, guile, chicken), b= ut
> when I run such code as this
>
> #+BEGIN_SRC scheme :session one
> (define (myadd x y)
>=C2=A0 =C2=A0 (+ x y))
> #+END_SRC
>
> it works -- beautifully with multiple REPLs (as you name them in the > :session) -- but it always grabs the guile. I'd like it to use chi= cken
> instead -- or maybe later MIT. I've got latest geiser installed as= well
> that should handle chicken. How can I use chicken inside of orgmode sc= heme
> code blocks? Wild guess, guile is first on some list, i.e., path? babe= l
> customize didn't seem to have an entry for which flavor.

Looking at the code, there is a :scheme header argument that can
indicate what scheme implementation should be used.=C2=A0 Otherwise, it
appears to use geiser-impl--implementation, which a comment says is
defined in geiser-impl.el.=C2=A0 There is also geiser-default-implementatio= n
and geiser-active-implementations from that same source.

hth,
Tom

--
Thomas S. Dye
http:= //www.tsdye.com

--001a11c3b9aa90a377051e7c5dab--