From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Using guile (running on a port) in Org Mode Date: Fri, 15 Jul 2022 14:57:15 +0000 Message-ID: References: <86v8rzgatu.fsf@bonfacemunyoki.com> <871qumless.fsf@terra.tmtvl.info> <86fsj2zb99.fsf@bonfacemunyoki.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40272"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org, Tim Van den Langenbergh To: Munyoki Kilyungi Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Jul 15 16:57:43 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCMlC-000AKI-3d for guile-user@m.gmane-mx.org; Fri, 15 Jul 2022 16:57:42 +0200 Original-Received: from localhost ([::1]:47378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCMlA-0004lc-IU for guile-user@m.gmane-mx.org; Fri, 15 Jul 2022 10:57:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMkt-0004lF-Ky for guile-user@gnu.org; Fri, 15 Jul 2022 10:57:24 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:50289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMkp-0005Xw-BP for guile-user@gnu.org; Fri, 15 Jul 2022 10:57:23 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6F7DF240028 for ; Fri, 15 Jul 2022 16:57:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1657897037; bh=SOgef6WkoAfbYsWm+ApiRbfBZ6/wwWQDKAGs7tgQYuA=; h=Date:Subject:To:Cc:From:From; b=Ew8WaqyJ/uz3fULTtPlYL/Zc2HJ6H/R2Cywrva2wsPaQXM7+frTeh4I41BfOA3NGf bP3HU6lVs/HkwyQSPc6bSEBC7kiXm6rU67b+/4kgJpOrmQ5WmXbRWNqs4TkWwEOh5J RkvP2oylZyNRxDuWTZ53+g/BZ/X71DMhWxJF1t8cWkNC9M8B3aVyFy6ViFN9HRYhck /jmcOXNCcV8OraHX5rgWFMpRMqYlsrmRwUZ0X6zYKiJJCJtdua92jaLxvnVt3uOrjX iKwAR8TIjpUrj2TKgJP74uQ/JRlD6AGpvzACs/LR7FUqLpoA2PyX6lBFeT0TFEbbM/ P/EIcCuHps1qg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LkvbJ2FGhz6tmK; Fri, 15 Jul 2022 16:57:16 +0200 (CEST) Content-Language: en-US In-Reply-To: <86fsj2zb99.fsf@bonfacemunyoki.com> Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18423 Archived-At: Hello Munyoki! On 7/15/22 16:44, Munyoki Kilyungi wrote: > Tim Van den Langenbergh > anaandika: > >> Munyoki Kilyungi writes: >> >>> [[PGP Signed Part:Undecided]] >>> >>> Hi Guilers! >>> >>> Recently I worked out a way to point an org src >>> block to any python environment I want: >>> . >>> WRT to scheme code, is there a way to tell a >>> scheme source block to run a guile interpreter >>> that runs on a given port? >> Hello there, >> >> it's been a little while since I looked at the ob-scheme code, but I believe >> that you should be able to use an existing Geiser session as the execution >> session for your Org buffer. So if you connect Geiser to a running Guile >> instance, give the Geiser buffer a unique name, and use that name as the >> session parameter for your src block (plus or minus earmuffs) I think it should >> work. >> > So I've renamed my buffer to "GUILE" > > and now I have this: > > #+begin_src scheme :results output :session "GUILE" > (+ 1 1) > #+end_src > > But I get: > > #+RESULTS: > : Geiser Interpreter produced no output > > Anything I'm doing wrong? I'll look into the > ob-scheme source later though. Perhaps I'll find > answers there. I think you are facing the same problem I faced: https://gitlab.com/emacs-geiser/guile/-/issues/21 Long story short: ob-scheme needs a patch applied, and your version of ob-scheme probably does not have it yet. Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl