Re: [O] Scheme code block gives false error message

2015-09-15 Thread Nick Dokos
Lawrence Bottorff writes: > . . . quick question, Nick (et al): how do I (enlightened beginner) apply the > above patch? I'm using > latest ELPA from org-mode repo. > Save the patch in a file (say "ob-scheme.patch") in the top level directory of your org-mode tree (the one that includes the lis

Re: [O] Scheme code block gives false error message

2015-09-15 Thread Lawrence Bottorff
Ach, disregard that last bleating. Got it changed, and yes, it works -- for both guile and chicken. Thanks a ton, ND. But, yes, if there's a cool emacs way to take your diff and apply it I'd like to know. . . LB On Tue, Sep 15, 2015 at 5:25 PM, Lawrence Bottorff wrote: > . . . quick question,

Re: [O] Scheme code block gives false error message

2015-09-15 Thread Lawrence Bottorff
. . . quick question, Nick (et al): how do I (enlightened beginner) apply the above patch? I'm using latest ELPA from org-mode repo. LB

Re: [O] Scheme code block gives false error message

2015-09-15 Thread Lawrence Bottorff
I've tried the Moebius workaround (see above). It seems to work, and #+begin_src scheme . . . seems to call my MIT scheme and do results just fine. But it ignores the idea of multiple sessions, which the geiser-based ob-scheme did so well and just has one MIT scheme "session." However it does not

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Nick Dokos
Nick Dokos writes: > Nick Dokos writes: > >> N.B. this is with guile: I have not tried chicken, MIT Scheme or any >> other scheme implementation. >> > > A comment on SO says that geiser (which is used by ob-scheme) > only supports guile and racket, so until that changes, chicken or MIT > Scheme

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Nick Dokos
Nick Dokos writes: > N.B. this is with guile: I have not tried chicken, MIT Scheme or any > other scheme implementation. > A comment on SO says that geiser (which is used by ob-scheme) only supports guile and racket, so until that changes, chicken or MIT Scheme won't work: http://stackoverflow.

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Nick Dokos
Nick Dokos writes: > Lawrence Bottorff writes: > >> I think this >> (https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/) >> describes my problem. Basically, it's with ob-scheme.el. The article >> seems to say that my problem is scheme stuff being handled improper

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Nick Dokos
Lawrence Bottorff writes: > On Mon, Sep 14, 2015 at 6:55 PM, Nick Dokos wrote: >   > > > So it looks like Scheme is not a Babel language after all. > > What do you mean? There is an ob-scheme.el but it's buggy: I suspect > that every ob-*.el is buggy to some extent. Does that mea

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Lawrence Bottorff
On Mon, Sep 14, 2015 at 6:55 PM, Nick Dokos wrote: > > So it looks like Scheme is not a Babel language after all. > > What do you mean? There is an ob-scheme.el but it's buggy: I suspect > that every ob-*.el is buggy to some extent. Does that mean that every > language that babel supports is not

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Nick Dokos
Lawrence Bottorff writes: > So it looks like Scheme is not a Babel language after all. What do you mean? There is an ob-scheme.el but it's buggy: I suspect that every ob-*.el is buggy to some extent. Does that mean that every language that babel supports is not a babel language? > Is there a fo

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Lawrence Bottorff
So it looks like Scheme is not a Babel language after all. Is there a formal "bug report" to do? On Mon, Sep 14, 2015 at 1:39 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > I think this > > ( > https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/ > ) > >

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Nick Dokos
Lawrence Bottorff writes: > I think this > (https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/) > describes my problem. Basically, it's with ob-scheme.el. The article > seems to say that my problem is scheme stuff being handled improperly > by the elisp of ob-sche

Re: [O] Scheme code block gives false error message

2015-09-13 Thread Lawrence Bottorff
I think this ( https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/) describes my problem. Basically, it's with ob-scheme.el. The article seems to say that my problem is scheme stuff being handled improperly by the elisp of ob-scheme.el. I'll try his workaround and se

Re: [O] Scheme code block gives false error message

2015-09-13 Thread Nick Dokos
Lawrence Bottorff writes: > Sorry, Nick, not following you. Could you elaborate more? As a rank > beginner, I'm not sure what a backtrace is or how to produce one or > how it read it. What do you mean by "master" and "maint"? > It's a debugging aid: it's a dump of the call stack at the time of t

Re: [O] Scheme code block gives false error message

2015-09-13 Thread Lawrence Bottorff
Sorry, Nick, not following you. Could you elaborate more? As a rank beginner, I'm not sure what a backtrace is or how to produce one or how it read it. What do you mean by "master" and "maint"? On Sun, Sep 13, 2015 at 5:41 AM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > Again, this code

Re: [O] Scheme code block gives false error message

2015-09-12 Thread Nick Dokos
Lawrence Bottorff writes: > Again, this code > > #+BEGIN_SRC scheme :session ch1 :exports both > (define (bool-imply a b) >   (if (or (not a) b) #t #f)) > #+END_SRC > > gives the error > > org-babel-scheme-execute-with-geiser: Invalid read syntax: "#" > > and this time attempting to use the funct

Re: [O] Scheme code block gives false error message

2015-09-12 Thread Lawrence Bottorff
Again, this code #+BEGIN_SRC scheme :session ch1 :exports both (define (bool-imply a b) (if (or (not a) b) #t #f)) #+END_SRC gives the error org-babel-scheme-execute-with-geiser: Invalid read syntax: "#" and this time attempting to use the function #+BEGIN_SRC scheme :session ch1 :exports bo

[O] Scheme code block gives false error message

2015-09-11 Thread Lawrence Bottorff
When I run this code: #+BEGIN_SRC scheme :session ch1 :exports both (define (check-it x) (cond ((string? x) (string-length x)) ((number? x) (if (<= x 0) x (sub1 x))) ((boolean? x) (if (and #t x) 10 20)) (else #f))) #+END_SRC I get this error message: org-babel-scheme-execute-wi