emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: gerard.vermeulen@posteo.net
To: Emacs orgmode <emacs-orgmode@gnu.org>
Subject: [PATCH] org-babel-load-languages: load unbound scheme-mode
Date: Thu, 11 May 2023 10:37:05 +0000	[thread overview]
Message-ID: <f86e0fb7b1c4c577232aaac612c67bf7@posteo.net> (raw)

[-- 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


             reply	other threads:[~2023-05-11 10:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-11 10:37 gerard.vermeulen [this message]
2023-05-11 15:05 ` [PATCH] org-babel-load-languages: load unbound scheme-mode Ihor Radchenko
2023-05-11 18:45   ` gerard.vermeulen
2023-05-12 12:21     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f86e0fb7b1c4c577232aaac612c67bf7@posteo.net \
    --to=gerard.vermeulen@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).