From: Roi Martin <jroi.martin@gmail.com>
To: Bruno Barbier <brubar.cs@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Avoid "Scheme implementation" prompt on export
Date: Wed, 16 Oct 2024 15:01:02 +0200 [thread overview]
Message-ID: <87v7xsrylt.fsf@gmail.com> (raw)
In-Reply-To: <670f8a53.050a0220.3062a1.f9d2@mx.google.com>
Bruno Barbier <brubar.cs@gmail.com> writes:
> The HTML fontification is launching REPLs, and *may* prompts
> for the implementation to use. I'm able to work around this with this
> setting:
>
> (setq geiser-mode-auto-p nil)
>
> I'm not sure what the real solution should be though.
Thanks a lot for the workaround! It works like a charm.
After pinpointing the issue to having htmlize installed, I've been
digging a bit and it seems that the `org-html-fontify-code' function in
`ox-html` triggers the prompt. It creates a temporary buffer with the
code and enables the corresponding language mode:
...
(with-temp-buffer
;; Switch to language-specific mode.
(funcall lang-mode)
(insert code)
...
So, it makes sense to set `geiser-mode-auto-p' to nil in order to avoid
being prompted for the specific Scheme implementation.
Maybe, we could have an alist that associates a language to some kind of
"setup" function. For instance, in the case of Scheme, it would read
the `:scheme' argument and set the geiser implementation. However, I'm
not sure if it is worth it. Also, I'm not familiar with the code base
of org-mode, so bear with me. Probably, what I'm proposing does not make
sense or is not the optimal solution.
What do you think?
In any case, thanks a lot for your help!
Best,
Roi
next prev parent reply other threads:[~2024-10-16 13:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 14:30 Avoid "Scheme implementation" prompt on export Roi Martin
2024-10-15 17:08 ` Bruno Barbier
2024-10-15 20:56 ` Roi Martin
2024-10-16 9:41 ` Bruno Barbier
2024-10-16 13:01 ` Roi Martin [this message]
2024-10-19 13:42 ` Ihor Radchenko
-- strict thread matches above, loose matches on Subject: below --
2024-10-14 10:17 Roi Martin
2024-10-14 17:45 ` Bruno Barbier
[not found] ` <87bjzma6ml.fsf@gmail.com>
2024-10-14 19:52 ` Roi Martin
2024-10-15 10:50 ` Bruno Barbier
2024-10-19 13:36 ` Ihor Radchenko
2024-10-20 11:22 ` Bruno Barbier
2024-10-19 13:32 ` Ihor Radchenko
2024-10-20 11:36 ` Bruno Barbier
2024-10-20 11:40 ` 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=87v7xsrylt.fsf@gmail.com \
--to=jroi.martin@gmail.com \
--cc=brubar.cs@gmail.com \
--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).