all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] org-babel-load-languages: load unbound scheme-mode
@ 2023-05-11 10:37 gerard.vermeulen
  2023-05-11 15:05 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: gerard.vermeulen @ 2023-05-11 10:37 UTC (permalink / raw)
  To: Emacs orgmode

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

Hello,

the attached patch fixes (setopt org-babel-load-languages '((scheme . 
t)))
before scheme-mode has been loaded.

Best regards -- Gerard

[-- Attachment #2: 0001-org-babel-load-languages-load-unbound-scheme-mode.patch --]
[-- Type: application/octet-stream, Size: 817 bytes --]

From 7f92c976bb7a41c59fff945d8f6759c7e1f16f62 Mon Sep 17 00:00:00 2001
From: Gerard Vermeulen <gerard.vermeulen@posteo.net>
Date: Thu, 11 May 2023 12:01:36 +0200
Subject: [PATCH] org-babel-load-languages: load unbound scheme-mode

* lisp/ob-scheme.el: add `require' to ensure loading of `scheme-mode'
  for setting `org-babel-load-languages' by means of `setopt'.
---
 lisp/ob-scheme.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el
index 344aec924..abbb30ac4 100644
--- a/lisp/ob-scheme.el
+++ b/lisp/ob-scheme.el
@@ -43,6 +43,7 @@
 (org-assert-version)
 
 (require 'ob)
+(require 'scheme) ; to set the `org-babel-load-languages' option
 (require 'geiser nil t)
 (require 'geiser-impl nil t)
 (defvar geiser-repl--repl)             ; Defined in geiser-repl.el
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-12 12:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-11 10:37 [PATCH] org-babel-load-languages: load unbound scheme-mode gerard.vermeulen
2023-05-11 15:05 ` Ihor Radchenko
2023-05-11 18:45   ` gerard.vermeulen
2023-05-12 12:21     ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.