emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Set babel scheme to chicken?
@ 2015-08-29 22:13 Lawrence Bottorff
  2015-08-29 22:45 ` Thomas S. Dye
  0 siblings, 1 reply; 4+ messages in thread
From: Lawrence Bottorff @ 2015-08-29 22:13 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

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.

LB

[-- Attachment #2: Type: text/html, Size: 747 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Set babel scheme to chicken?
  2015-08-29 22:13 Set babel scheme to chicken? Lawrence Bottorff
@ 2015-08-29 22:45 ` Thomas S. Dye
  2015-08-30  0:26   ` Lawrence Bottorff
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas S. Dye @ 2015-08-29 22:45 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode

Aloha Lawrence,

Lawrence Bottorff <borgauf@gmail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Set babel scheme to chicken?
  2015-08-29 22:45 ` Thomas S. Dye
@ 2015-08-30  0:26   ` Lawrence Bottorff
  2015-08-30  3:09     ` Thomas S. Dye
  0 siblings, 1 reply; 4+ messages in thread
From: Lawrence Bottorff @ 2015-08-30  0:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]

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 <tsd@tsdye.com> wrote:

> Aloha Lawrence,
>
> Lawrence Bottorff <borgauf@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 2110 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Set babel scheme to chicken?
  2015-08-30  0:26   ` Lawrence Bottorff
@ 2015-08-30  3:09     ` Thomas S. Dye
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas S. Dye @ 2015-08-30  3:09 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode


Lawrence Bottorff <borgauf@gmail.com> writes:

> Not sure what the :scheme header argument might be or how to change it.

I think this might work, but don't have a scheme to check it out.

#+BEGIN_SRC scheme :session one :scheme chicken
  (define (myadd x y)
    (+ x y))
#+END_SRC

hth,
Tom

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-30  3:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-29 22:13 Set babel scheme to chicken? Lawrence Bottorff
2015-08-29 22:45 ` Thomas S. Dye
2015-08-30  0:26   ` Lawrence Bottorff
2015-08-30  3:09     ` Thomas S. Dye

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).