From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Another babel scheme issue Date: Wed, 16 Sep 2015 23:26:40 +0000 Message-ID: References: <87twqurwk1.fsf@alphaville.usersys.redhat.com> <87lhc6rpth.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a89ae7c6d17051fe5a1d3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcM67-0000sH-F8 for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 19:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcM66-0002WL-Dd for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 19:26:43 -0400 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:35809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcM65-0002W8-Tl for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 19:26:42 -0400 Received: by lagj9 with SMTP id j9so872063lag.2 for ; Wed, 16 Sep 2015 16:26:41 -0700 (PDT) In-Reply-To: <87lhc6rpth.fsf@alphaville.usersys.redhat.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: emacs-orgmode@gnu.org --047d7b3a89ae7c6d17051fe5a1d3 Content-Type: text/plain; charset=UTF-8 I appreciate your efforts, ND. No silver bullet is just lying around, so I think I can live with this for the time being. Must learn elisp I. LB On Wed, Sep 16, 2015 at 9:56 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > Sort of. It doesn't give me a geiser dbg buffer, rather > > > > #+RESULTS: > > : "Dear Matthew,\n\nWe have discovered that all people with the last > name \nFisler have won our lottery. > > So, Matthew, \nhurry and pick up your > prize.\n\nSincerely,\n\nFelleisen\n" > > > > Tthat is, it puts it in my org buffer, but it ignores the formatting. > Same behavior with chicken. > > > > There may some formatting missing at the end of org-babel-execute:scheme. > Comparing it to org-babel-execute:emacs-lisp in ob-emacs-lisp.el, the > latter calls org-babel-result-cond and does some mucking around with the > result in the scalar/verbatim cases. Maybe a similar thing should be > done in ob-scheme.el. > > > On Wed, Sep 16, 2015 at 3:30 PM, Nick Dokos wrote: > > > > Lawrence Bottorff writes: > > > > > ... > > > However C- C-c-ing > > > > > > #+BEGIN_SRC scheme :session ch1 > > > (write-file 'stdout (letter "Matthew" "Fisler" "Felleisen")) > > > #+END_SRC > > > > > > produces > > > > > > #+RESULTS: > > > : stdout > > > > > > > I presume write-file returns stdout as its value (?). > > > > Does > > > > #+BEGIN_SRC scheme :session ch1 :results output > > (write-file 'stdout (letter "Matthew" "Fisler" "Felleisen")) > > #+END_SRC > > > > work? > > > > [Untested] > > > > > > --047d7b3a89ae7c6d17051fe5a1d3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I appreciate your efforts, ND. No silver bullet is just ly= ing around, so=C2=A0I think I can live with this for the time being. Must l= earn elisp I.

LB
<= br>
On Wed, Sep 16, 2015 at 9:56 PM, Nick Dokos <= span dir=3D"ltr"><= ndokos@gmail.com> wrote:
Lawrence Bottorff <b= orgauf@gmail.com> writes:

> Sort of. It doesn't give me a geiser dbg buffer, rather
>
> #+RESULTS:
> : "Dear Matthew,\n\nWe have discovered that all people with the l= ast name \nFisler have won our lottery.
> So, Matthew, \nhurry and pick up your prize.\n\nSincerely,\n\nFelleise= n\n"
>
> Tthat is, it puts it in my org buffer, but it ignores the formatting. = Same behavior with chicken.
>

There may some formatting missing at the end of org-babel-execute:sc= heme.
Comparing it to org-babel-execute:emacs-lisp in ob-emacs-lisp.el, the
latter calls org-babel-result-cond and does some mucking around with the result in the scalar/verbatim cases.=C2=A0 Maybe a similar thing should be<= br> done in ob-scheme.el.

> On Wed, Sep 16, 2015 at 3:30 PM, Nick Dokos <ndokos@gmail.com> wrote:
>
>=C2=A0 =C2=A0 =C2=A0Lawrence Bottorff <borgauf@gmail.com> writes:
>
>=C2=A0 =C2=A0 =C2=A0> ...
>=C2=A0 =C2=A0 =C2=A0> However C- C-c-ing
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> #+BEGIN_SRC scheme :session ch1
>=C2=A0 =C2=A0 =C2=A0> (write-file 'stdout (letter "Matthew&= quot; "Fisler" "Felleisen"))
>=C2=A0 =C2=A0 =C2=A0> #+END_SRC
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> produces=C2=A0
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> #+RESULTS:
>=C2=A0 =C2=A0 =C2=A0> : stdout
>=C2=A0 =C2=A0 =C2=A0>
>
>=C2=A0 =C2=A0 =C2=A0I presume write-file returns stdout as its value (?= ).
>
>=C2=A0 =C2=A0 =C2=A0Does
>
>=C2=A0 =C2=A0 =C2=A0#+BEGIN_SRC scheme :session ch1 :results output
>=C2=A0 =C2=A0 =C2=A0(write-file 'stdout (letter "Matthew"= "Fisler" "Felleisen"))
>=C2=A0 =C2=A0 =C2=A0#+END_SRC
>
>=C2=A0 =C2=A0 =C2=A0work?
>
>=C2=A0 =C2=A0 =C2=A0[Untested]
>




--047d7b3a89ae7c6d17051fe5a1d3--