emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bruno Barbier <brubar.cs@gmail.com>
To: Roi Martin <jroi.martin@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Avoid "Scheme implementation" prompt on export
Date: Tue, 15 Oct 2024 19:08:30 +0200	[thread overview]
Message-ID: <670ea190.5d0a0220.1c348e.8c71@mx.google.com> (raw)
In-Reply-To: <87r08htp59.fsf@gmail.com>

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



Roi Martin <jroi.martin@gmail.com> writes:    
> I tried the current main branch (commit da0f6eff75cd ("ox-texinfo: Fix
> edge case with - Variable: nil:: definition") with and without the
> patch.  Unless I'm doing something wrong, exporting the document to HTML
> with "C-c C-e h H" asks for the Scheme implementation for every code
> block.  Please, note that the htmlize package must be installed.
>
> Also, note that executing the code block with "C-c C-c" never asked for
> the Scheme implementation when the ":scheme" argument is specified.

My patch fixes a real bug though.  Are you sure org is using the correct
scheme implementation when doing "C-c C-c" ?


I just checked exporting my example to html: it works for me.

I've tested using the same version as you:

     Org mode commit: da0f6eff75cd
     
with my patch applied on top, and using a clean bare bone emacs,
without any config.

I'm launching emacs like this:

  emacs -q test_ob-scheme-bug.org


Running the elisp code block, I'm getting the expected result in HTML.

In the HTML file, I see:

     #+begin_example
     <pre class="example">
     Welcome to Racket v8.14 [cs].\n
     </pre>
     #+end_example
and:
     #+begin_example
     <pre class="example">
     Chez Scheme Version 10.0.0
     </pre>
     #+end_example

I've attached the org file that I've used to test this.  The first elisp
block allows to configure Emacs from scratch (downloading and installing
the required packages), export the org file to HTML and open the HTML
result.

Maybe something is wrong in your configuration ?

Bruno


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test_ob-scheme-bug.org --]
[-- Type: text/org, Size: 849 bytes --]

* Mandatory first heading
   :PROPERTIES:
   :header-args:scheme: :exports both :results value
   :END:

 #+begin_src elisp
   (setq-local org-confirm-babel-evaluate nil)
   (setq package-archives
      '(("gnu"          . "http://elpa.gnu.org/packages/")
        ("melpa-stable" . "http://stable.melpa.org/packages/")))
   (setq package-check-signature t) ; 'allow-unsigned)
   (setq package-unsigned-archives (list "melpa-stable"))
   (package-initialize)

   (load-library "ob-scheme")
   (package-install 'geiser)
   (package-install 'geiser-chez)
   (package-install 'geiser-racket)
   (setq-default geiser-chez-binary "chezscheme")
   (org-export-to-file 'html "test.html")
   (find-file "test.html")
 #+end_src

 
 #+begin_src scheme :scheme racket 
   (banner)
 #+end_src

 
 #+begin_src scheme :scheme chez
   (scheme-version)
 #+end_src



  reply	other threads:[~2024-10-15 17:09 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 [this message]
2024-10-15 20:56   ` Roi Martin
2024-10-16  9:41     ` Bruno Barbier
2024-10-16 13:01       ` Roi Martin
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=670ea190.5d0a0220.1c348e.8c71@mx.google.com \
    --to=brubar.cs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jroi.martin@gmail.com \
    /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).