emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: KDr2 <killy.draw@gmail.com>
To: Oleh <ohwoeowho@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode
Date: Thu, 10 Apr 2014 16:36:50 +0800	[thread overview]
Message-ID: <CAHfjm6hqsA_ytjT2kF9FwkS2LwFBABM-piYeQ1KsZmhp=UAiag@mail.gmail.com> (raw)
In-Reply-To: <CAA01p3pJWX5GrJ-xBCKRWYpTY-wxdt_igVRG+g-Z1biNrJbTiA@mail.gmail.com>

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

Hi, Oleh

Thanks for you reply. Here is my config steps:
0. I use Debian(sid) and Emacs 24
1. install guile (using apt): http://www.gnu.org/software/guile/
2. install geiser(http://www.nongnu.org/geiser/) with elpa
    and setting for geiser:

    (setq geiser-active-implementations '(guile))
    (setq geiser-default-implementation 'guile)

 That's all, there's no special settings for orgmode.

Thanks again.



On Thu, Apr 10, 2014 at 4:27 PM, Oleh <ohwoeowho@gmail.com> wrote:

> Hi,
>
> I tried to have a look at your patch, but ob-scheme has stopped working
> for me. Can you send me the minimal init.el to make your scheme-test.org
> work in interactive mode?
>
> regards,
> Oleh
>
> On Tue, Apr 8, 2014 at 3:56 PM, KDr2 <killy.draw@gmail.com> wrote:
> > Hi, folks
> >
> > Has anyone reviewed this patch? Or is there a better way to fix the bug?
> >
> > Thanks.
> >
> >
> > On Wed, Apr 2, 2014 at 11:48 AM, KDr2 <killy.draw@gmail.com> wrote:
> >>
> >> The bug:
> >> write file ~/scheme-test.org with the content below:
> >> -------8<--------------
> >> #+BEGIN_SRC scheme :exports results :results output raw
> >>   (display "Hello Scheme in OrgMode")
> >> #+END_SRC
> >> -------8<--------------
> >>
> >> and run:
> >>
> >> emacs --batch --eval='(load "~/.emacs.d/init.el")' ~/scheme-test.org -f
> >> org-html-export-to-html
> >>
> >> you will find the bug:
> >>
> >> `org-babel-scheme-execute-with-geiser' uses `current-message' to get the
> >> results of scheme code blocks, but `current-message' always returns nil
> in
> >> batch mode, and this patch fixes this.
> >>
> >> --
> >> --
> >>
> >> KDr2, http://kdr2.com
> >
> >
> >
> >
> > --
> > --
> >
> > KDr2, http://kdr2.com
>



-- 
-- 

KDr2, http://kdr2.com

[-- Attachment #2: Type: text/html, Size: 3271 bytes --]

  reply	other threads:[~2014-04-10  8:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02  3:48 [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode KDr2
2014-04-08 13:56 ` KDr2
2014-04-10  8:27   ` Oleh
2014-04-10  8:36     ` KDr2 [this message]
2014-04-10  8:55       ` Oleh
2014-04-10  9:02         ` KDr2
2014-04-10 10:54           ` Oleh
2014-04-10 11:00             ` KDr2
2014-04-10 11:22               ` Oleh
2014-04-10 11:32                 ` KDr2
2014-04-11  2:45 ` Eric Schulte
2014-04-11  5:18   ` KDr2
2014-04-11 19:18     ` Eric Schulte
2014-04-12  8:13       ` KDr2
2014-04-12 14:12         ` Eric Schulte
2014-05-22 12:45           ` KDr2

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='CAHfjm6hqsA_ytjT2kF9FwkS2LwFBABM-piYeQ1KsZmhp=UAiag@mail.gmail.com' \
    --to=killy.draw@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ohwoeowho@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).