From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Kremers Subject: ob-scheme haunted source code block? Date: Fri, 17 Jan 2020 12:59:48 +0100 Message-ID: <87muam1hpz.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38223) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isQIA-0001Jv-2L for emacs-orgmode@gnu.org; Fri, 17 Jan 2020 07:00:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isQI6-00033j-17 for emacs-orgmode@gnu.org; Fri, 17 Jan 2020 06:59:57 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47177) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1isQI5-00032D-HT for emacs-orgmode@gnu.org; Fri, 17 Jan 2020 06:59:53 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C66C621F34 for ; Fri, 17 Jan 2020 06:59:51 -0500 (EST) Received: from Swift.fastmail.com (ip5f5ac936.dynamic.kabel-deutschland.de [95.90.201.54]) by mail.messagingengine.com (Postfix) with ESMTPA id 496A23060A6E for ; Fri, 17 Jan 2020 06:59:51 -0500 (EST) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" Hi list, I've been learning some Scheme recently and decided to use Org mode and babel so I could document my progress, keep notes, etc. together with the code I write. I also installed the geiser package to work with Scheme source files directly. This all worked perfectly, until I made the (apparent) mistake of typing =C-c C-c= on an expression while editing a source code block. That is, I had pressed =C-c '= in an Org buffer on a source block and in the editing buffer that popped up, I hit =C-c C-c= (bound to =geiser-eval-definition=) on a particular function (well procedure...) definition. >From that moment on, that particular procedure definition seems haunted. Whenever I evaluate a source block containing it from within an Org file, the associated REPL is doomed. It takes about 30 seconds for the evaluation to complete, during which time Emacs seems to hang (no CPU activity, just waiting). Any further interaction with the REPL from that point on, either from other source blocks in the same file (all source blocks in it use the same session) or in the REPL buffer directly, causes the same hang. I can `C-g` out of the hang, but this doesn't solve much because any further interaction causes the same hang. Putting the relevant procedure definition in a Scheme source file and evaluating that (within Emacs, through geiser) is unproblematic, so the code itself is not to blame. The weirdest thing about this is that the problem is persistent. I restarted Emacs and in my desperation even rebooted the computer, but to no avail. Does anyone have any idea what might be going on? I rgrepped through my =.emacs.d= directory to see if the relevant procedure name turns up anywhere but found nothing. I'm not really sure where to look beyond that. Versions: IELM> emacs-version "26.3" IELM> org-version "9.3.1" TIA Joost -- Joost Kremers Life has its moments