emacs-orgmode@gnu.org archives
 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

* Re: [PATCH] org-babel-load-languages: load unbound scheme-mode
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2023-05-11 15:05 UTC (permalink / raw)
  To: gerard.vermeulen; +Cc: Emacs orgmode

gerard.vermeulen@posteo.net writes:

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

Thanks, but may you please elaborate what is the problem you are trying
to solve?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [PATCH] org-babel-load-languages: load unbound scheme-mode
  2023-05-11 15:05 ` Ihor Radchenko
@ 2023-05-11 18:45   ` gerard.vermeulen
  2023-05-12 12:21     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: gerard.vermeulen @ 2023-05-11 18:45 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Emacs orgmode



On 11.05.2023 17:05, Ihor Radchenko wrote:
> gerard.vermeulen@posteo.net writes:
> 
>> the attached patch fixes (setopt org-babel-load-languages '((scheme .
>> t)))
>> before scheme-mode has been loaded.
> 
> Thanks, but may you please elaborate what is the problem you are trying
> to solve?

I think that I have seen Emacs complaining about unbound scheme-mode
when playing with ob-scheme, but I cannot reproduce it.

I am sorry for the noise -- Gerard



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

* Re: [PATCH] org-babel-load-languages: load unbound scheme-mode
  2023-05-11 18:45   ` gerard.vermeulen
@ 2023-05-12 12:21     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2023-05-12 12:21 UTC (permalink / raw)
  To: gerard.vermeulen; +Cc: Emacs orgmode

gerard.vermeulen@posteo.net writes:

> I think that I have seen Emacs complaining about unbound scheme-mode
> when playing with ob-scheme, but I cannot reproduce it.

Canceled.


^ permalink raw reply	[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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).