From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Nikishkin Subject: Bug: Re: ob-scheme.el has two problems: not killing a misbehaving interpreter and sometimes returns nil [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.2/lisp/org/)] Date: Mon, 19 Aug 2019 13:39:49 +0800 Message-ID: <87a7c5emsa.fsf@delllaptop.lockywolf.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47268) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzaOg-0001my-AA for emacs-orgmode@gnu.org; Mon, 19 Aug 2019 01:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzaOf-0000TU-8o for emacs-orgmode@gnu.org; Mon, 19 Aug 2019 01:40:02 -0400 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]:43142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzaOf-0000TD-0U for emacs-orgmode@gnu.org; Mon, 19 Aug 2019 01:40:01 -0400 Received: by mail-ed1-x544.google.com with SMTP id h13so487409edq.10 for ; Sun, 18 Aug 2019 22:40:00 -0700 (PDT) Received: from delllaptop.lockywolf.net ([95.85.18.95]) by smtp.gmail.com with ESMTPSA id e3sm1883236ejm.16.2019.08.18.22.39.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 22:39:58 -0700 (PDT) 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: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ The super-pedestrian patch I wrote to patch this issue is: diff --git a/usr/src/emacs/lisp/org/ob-scheme.el b/usr/share/emacs/26.2/lisp/org/ob-scheme.el index 798cf4e..1df4df9 100644 --- a/usr/src/emacs/lisp/org/ob-scheme.el +++ b/usr/share/emacs/26.2/lisp/org/ob-scheme.el @@ -175,7 +175,10 @@ is true; otherwise returns the last value." (geiser-debug-show-debug-p nil)) (let ((ret (geiser-eval-region (point-min) (point-max)))) (setq result (if output - (geiser-eval--retort-output ret) + (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 ""))))) (when (not repl) (save-current-buffer (set-buffer repl-buffer) Emacs : GNU Emacs 26.2 (build 1, x86_64-slackware-linux-gnu, GTK+ Version 3.24.10) of 2019-07-18 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.2/lisp/org/) -- -- Vladimir Nikishkin (MiEr, lockywolf)