From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CMiRKjdJDmcGLwEAqHPOHw:P1 (envelope-from ) for ; Tue, 15 Oct 2024 10:51:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CMiRKjdJDmcGLwEAqHPOHw (envelope-from ) for ; Tue, 15 Oct 2024 12:51:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AJIn2ahG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728989495; a=rsa-sha256; cv=none; b=rSqcUSd0gZO+Gwjb1yMUadh522d3Xmgf4XQ9Fk2OiKmK9JxVvwnbySow8gMILW0tYnIClq M0tJ52LUh//bv2zaNk6eo+U4ZuMSfOC2L+46nbMbDO+JL4xGvRX0PL27n6UOGsTEX2pWE8 yre0YQa/kGFUIITPXsxfxAfZlidhs/mr37f2bKARwHmANX3MOXkfpa5cxJe4C9Y75Oy7pl SwOHjI5V4n93hS/PKsBc32ZpwU5GDci4kMBhuC0uRWnvUKXKhYbZ7EQOTUabAf9I7+DFct eCuAUe5Lafp0yNjhmc9nJx+5B4dnE5UJuBmKFuS3IHP3cy6/uzjKNkZs2P4MQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AJIn2ahG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728989495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1F6xai0ohzEhrdmPpaJFKBeOBbnNWIdBLZ4V8zm+Osg=; b=nRuDHcO0AXOlteXqXjGDecXY84iARcqkZN2vcKpov1UeqWaYLX9Cxn4pR/K0046IAORhsO f+JVCZJcsJ1tb02gsbqxvTQ154kOcSUdxQL7SLW9kdNQzf2SDnUn8NP2piNRzqK/SeiauD 7UVwFQe/bhC5w0WIeIGrT/JM1LlgrIfVKQP076wnS38as3uiO8eih6ZIPbUyzhbj8/R2wC jl74BR0lrmDfKIkxUlZbQnQGwvjW9oJdmmJazBlFCGO6jVtGf9SyJwo/u0RVqNGMk3z12u QWc48XOSLe7+jtvBQctJrtg5wGSWmT4nHYwTVcQexSy1ZJmfNLZooJ1pLtriUQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7A68E8D5E5 for ; Tue, 15 Oct 2024 12:51:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0f8Z-0007fz-RX; Tue, 15 Oct 2024 06:50:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0f8X-0007fj-MD for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 06:50:46 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0f8V-0007e1-V0 for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 06:50:45 -0400 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-539e59dadebso3671882e87.0 for ; Tue, 15 Oct 2024 03:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728989442; x=1729594242; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1F6xai0ohzEhrdmPpaJFKBeOBbnNWIdBLZ4V8zm+Osg=; b=AJIn2ahGFNX591nBSVVZ3sZHw65RUrTX7zeAwQX4BaaAayc/N/twFPI8lRhFoIjuh+ QbRhm9+6e3BrBR6+tED/k2YSHFMfYL4SQ76hvgMF6Ca+OBQFtzLRRBbou4NgFCIpiNxY IMnzG0CrNXFi4I4OeDuyn1cBRKqc0Ak1ZRoj7xs8IZhAFZUa6LNDz+RQtHPJHUuO2cyU WEAMVxYTOFrZl5+faSObgW2CqvYw7BpuJjlpmczxhEmiK35os0I1xwvjVUvpKqOj7a9B j0XJVeA5Nvk/lgCpoMlVDyi0FRHo4Sb/dWcBj7PUp/kj1yoXFe0JCasCQetA5qTyG3CX +YQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728989442; x=1729594242; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1F6xai0ohzEhrdmPpaJFKBeOBbnNWIdBLZ4V8zm+Osg=; b=xMlSy/qe2VIYXKLfcGMxEYj8FwiE2G63ur6Y31l0JT3WeJbzWLCX2taSgrnfOU7A1y 9n2pSHRAtDWmUA+9Z5xDKI7XbF+cBfnfyIoVmlJwQXR39mYbwWaVjKIKnn7GBWvv0i1y NH5vdLBrbtYoW/RrFun85yzuQhaVUmrURt7FmiWnI8vHGGT0G5VhevKhYQWQ7volX9Lo nBrQGWLMRggvGcqkJsMve1Z4x0gTKRgyTcVP6UBEvBx8LNCrzoXbfEeRic1QuXI75CAa g5DTqRdVv/EDddEPPx77CE5XQdINckBLjKBd6lvsi2ZWt1wwzWZ/VkX5rSmXetYz+pK3 PojQ== X-Forwarded-Encrypted: i=1; AJvYcCU7Ow7EYh0jEOBhdEKXIsl4nasIs6uQ4ZnoDTXN15A8O/RPc5vhoQIWIBRuxMZN0R7K4kOkHTn+MNJuVZPx@gnu.org X-Gm-Message-State: AOJu0YzlIh2uN/lRKClIGiHzrjZfYUj2tkVztZoOqCvgwOxH88jUYt+H LYpp/1SFH0IQxnUJHn5T66wScdlUpXgL9U97R38iofxhXrSVrL6EHPh7Jw== X-Google-Smtp-Source: AGHT+IFec0RfTmBNQD4UNBSjBh3z/gf+wbEbfuOQ0+tBMk+3crH5gwh0X2BcdaoksHpCBp0S2++trg== X-Received: by 2002:a05:6512:3090:b0:534:543e:1895 with SMTP id 2adb3069b0e04-539da565e2bmr7360919e87.39.1728989441220; Tue, 15 Oct 2024 03:50:41 -0700 (PDT) Received: from localhost ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4313f5699fbsm14213655e9.17.2024.10.15.03.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 03:50:40 -0700 (PDT) Message-ID: <670e4900.050a0220.3c2a44.4152@mx.google.com> Received: by localhost (sSMTP sendmail emulation); Tue, 15 Oct 2024 12:50:39 +0200 From: Bruno Barbier To: Roi Martin , emacs-orgmode@gnu.org Subject: Re: Avoid "Scheme implementation" prompt on export In-Reply-To: <87bjzm4g3x.fsf@gmail.com> References: <87y12rng3q.fsf@gmail.com> <670d58b6.050a0220.1613aa.745f@mx.google.com> <87bjzma6ml.fsf@gmail.com> <87bjzm4g3x.fsf@gmail.com> Date: Tue, 15 Oct 2024 12:50:38 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=brubar.cs@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.59 X-Spam-Score: -1.59 X-Migadu-Queue-Id: 7A68E8D5E5 X-Migadu-Scanner: mx12.migadu.com X-TUID: sRCJdtDeAjuZ --=-=-= Content-Type: text/plain Roi Martin writes: >> I tried with: >> >> #+begin_src scheme :scheme chez >> (+ 3 4) >> #+end_src >> >> and also with ':scheme racket'. >> >> Unfortunately, it does not seem to work when exporting the document. >> >> Thanks for your help! >> >> Roi I've installed chez and racket. Indeed, the argument :session if half-ignored. I've attached a quick ugly hack; with that change, it is now working for me. #+begin_src scheme :scheme racket (banner) #+end_src #+RESULTS: : Welcome to Racket v8.14 [cs].\n (setq-default geiser-chez-binary "chezscheme") #+begin_src scheme :scheme chez (scheme-version) #+end_src #+RESULTS: : Chez Scheme Version 10.0.0 Could you try it? Bruno --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ob-scheme-Hack-to-pass-the-implementation-to-geiser-.patch Content-Description: ob-scheme: Hack to pass the implementation to 'geiser-mode' >From dbb3068bd3e22ee8d38c99c69061b26d3a4064d6 Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Tue, 15 Oct 2024 12:42:44 +0200 Subject: [PATCH] ob-scheme: Hack to pass the implementation to 'geiser-mode' --- lisp/ob-scheme.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el index 29fdcd1ec..7bf8acf6c 100644 --- a/lisp/ob-scheme.el +++ b/lisp/ob-scheme.el @@ -184,7 +184,9 @@ (defun org-babel-scheme-execute-with-geiser (code output impl repl &optional hos (newline) (let ((beg (point))) (insert code) - (geiser-mode) + ;; Hack to pass our 'impl' to 'geiser-mode'. + (let ((geiser-impl--implementation impl)) + (geiser-mode)) (let ((geiser-repl-window-allow-split nil) (geiser-repl-use-other-window nil)) (let ((repl-buffer (save-current-buffer -- 2.45.2 --=-=-=--