From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Re: Bug: Problems with ob-scheme in geiser-eval--retort-output [9.2.6 (9.2.6-4-ge30905-elpa @ /home/lockywolf/.emacs.d/elpa/org-20191021/)] Date: Mon, 21 Oct 2019 11:42:53 +0100 Message-ID: References: <87h842kfgi.fsf@delllaptop.lockywolf.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003c6c120595695942" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44229) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMV9X-00085T-FK for emacs-orgmode@gnu.org; Mon, 21 Oct 2019 06:43:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMV9W-0005J7-Af for emacs-orgmode@gnu.org; Mon, 21 Oct 2019 06:43:07 -0400 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:44462) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMV9W-0005Hl-4Y for emacs-orgmode@gnu.org; Mon, 21 Oct 2019 06:43:06 -0400 Received: by mail-qt1-x82b.google.com with SMTP id u40so20225824qth.11 for ; Mon, 21 Oct 2019 03:43:05 -0700 (PDT) In-Reply-To: <87h842kfgi.fsf@delllaptop.lockywolf.net> 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" To: Vladimir Nikishkin Cc: Org Mode List --0000000000003c6c120595695942 Content-Type: text/plain; charset="UTF-8" Hi Vladimir, On Mon, 21 Oct 2019 at 03:21, Vladimir Nikishkin wrote: > > Can we replace the (set) on line 177 of ob-scheme.el with the following > form: > (setq result (if output > (let ((g-r-o (geiser-eval--retort-output ret))) > (if g-r-o > g-r-o > "Geiser-eval--retort-output returned nil.\nThe > interpreter produced no output\nor there is a bug in geiser (likely!)")) > (geiser-eval--retort-result-str ret ""))))) > > I am not super sure about what's going on there, but I think that output > can never be an empty list, because in the worst case it is an empty > string. > (But I wouldn't vouch for this.) > Can you explain more? Have you seen cases where (geiser-eval--retort-output ret) returns nil, even though you say just above that it can never do that? Best wishes, Neil --0000000000003c6c120595695942 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Vladimir,

On Mon, 21 Oct 2019 at 03:21, Vladimir Ni= kishkin <lockywolf@gmail.com&= gt; wrote:

C= an we replace the (set) on line 177 of ob-scheme.el with the following
form:
(setq result (if output
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let ((g-r-o = (geiser-eval--retort-output ret)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if g-r-o
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0g-r-o
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0"Geiser-eval--retort-output returned nil.\nThe interpreter produced= no output\nor there is a bug in geiser (likely!)"))
(geiser-eval--retort-result-str ret "")))))

I am not super sure about what's going on there, but I think that outpu= t
can never be an empty list, because in the worst case it is an empty
string.
(But I wouldn't vouch for this.)

Ca= n you explain more?=C2=A0 Have you seen cases where=C2=A0(geiser-eval--reto= rt-output ret) returns nil, even though you say just above that it can neve= r do that?

Best wishes,
=C2=A0 =C2=A0 Ne= il

--0000000000003c6c120595695942--