From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Scheme code evaluation in fresh Emacs Date: Tue, 19 Dec 2017 18:29:35 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------15BBC4ECBCAC86C37E6A2127" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRMe8-00070G-5S for emacs-orgmode@gnu.org; Tue, 19 Dec 2017 13:29:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRMe3-00038S-Ew for emacs-orgmode@gnu.org; Tue, 19 Dec 2017 13:29:44 -0500 Received: from smtp-out-3.talktalk.net ([62.24.135.67]:28859) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eRMe2-00036v-Uw for emacs-orgmode@gnu.org; Tue, 19 Dec 2017 13:29:39 -0500 Received: from [192.168.1.13] (unknown [192.168.1.13]) by arudy.520b.com (Postfix) with ESMTPSA id 0D3CA38012 for ; Tue, 19 Dec 2017 18:29:35 +0000 (GMT) Content-Language: en-US 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: org-mode mailing list This is a multi-part message in MIME format. --------------15BBC4ECBCAC86C37E6A2127 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit When I try to evaluate Scheme code in an Emacs where I haven't yet done any Geiser/Scheme work, I get an error about geiser-default-implementation being undefined.  The attached patch fixes that, but I am not sure if it is the most minimal fix possible.  WDYT? Best wishes - Neil --------------15BBC4ECBCAC86C37E6A2127 Content-Type: text/x-patch; name="0001-Fix-Scheme-evaluation-in-fresh-Emacs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-Scheme-evaluation-in-fresh-Emacs.patch" >From adceb034b886d1c3624b31f83f8826869cd1b92c Mon Sep 17 00:00:00 2001 From: Neil Jerram Date: Tue, 19 Dec 2017 18:15:00 +0000 Subject: [PATCH] Fix Scheme evaluation in fresh Emacs * lisp/ob-scheme.el: Require geiser-impl so that geiser-default-implementation is defined. Otherwise, unless Geiser has previously been run (e.g. with `run-geiser'), you'll see an error that geiser-default-implementation is undefined. --- lisp/ob-scheme.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el index f67080adf..7dbd78097 100644 --- a/lisp/ob-scheme.el +++ b/lisp/ob-scheme.el @@ -40,6 +40,7 @@ ;;; Code: (require 'ob) (require 'geiser nil t) +(require 'geiser-impl nil t) (defvar geiser-repl--repl) ; Defined in geiser-repl.el (defvar geiser-impl--implementation) ; Defined in geiser-impl.el (defvar geiser-default-implementation) ; Defined in geiser-impl.el -- 2.15.1 --------------15BBC4ECBCAC86C37E6A2127--