emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Scheme code block gives false error message
Date: Sat, 12 Sep 2015 01:23:37 +0000	[thread overview]
Message-ID: <CAFAhFSWrujdsLdMJp09_JzHtnWdQ9tifKvmvxz=9dENDMxPDDA@mail.gmail.com> (raw)

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

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-with-geiser: Invalid read syntax: "#"

But the Chicken Scheme session has accepted the check-it function just
fine. A stand-alone csi REPL works fine, too. Why, then, do I get this
cryptic error?

LB

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

             reply	other threads:[~2015-09-12  1:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-12  1:23 Lawrence Bottorff [this message]
2015-09-13  4:03 ` Scheme code block gives false error message Lawrence Bottorff
2015-09-13  5:41   ` Nick Dokos
2015-09-13 13:14     ` Lawrence Bottorff
2015-09-13 19:48       ` Nick Dokos
2015-09-14  3:50         ` Lawrence Bottorff
2015-09-14 13:39           ` Nick Dokos
2015-09-14 15:56             ` Lawrence Bottorff
2015-09-14 18:55               ` Nick Dokos
2015-09-14 21:18                 ` Lawrence Bottorff
2015-09-15  1:38                   ` Nick Dokos
2015-09-15  3:10             ` Nick Dokos
2015-09-15  4:41               ` Nick Dokos
2015-09-15  4:48                 ` Nick Dokos
2015-09-15 17:08                   ` Lawrence Bottorff
2015-09-15 17:25                     ` Lawrence Bottorff
2015-09-15 18:54                       ` Lawrence Bottorff
2015-09-15 19:14                       ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFAhFSWrujdsLdMJp09_JzHtnWdQ9tifKvmvxz=9dENDMxPDDA@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).