From mboxrd@z Thu Jan 1 00:00:00 1970 From: KDr2 Subject: Re: [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode Date: Thu, 10 Apr 2014 16:36:50 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115ec148244b404f6ac1f3c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYATy-0007Xp-5D for emacs-orgmode@gnu.org; Thu, 10 Apr 2014 04:37:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYATv-0007hl-Ab for emacs-orgmode@gnu.org; Thu, 10 Apr 2014 04:37:14 -0400 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:62770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYATv-0007hc-4c for emacs-orgmode@gnu.org; Thu, 10 Apr 2014 04:37:11 -0400 Received: by mail-ob0-f178.google.com with SMTP id wp18so3993658obc.23 for ; Thu, 10 Apr 2014 01:37:10 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Oleh Cc: emacs-orgmode@gnu.org --089e0115ec148244b404f6ac1f3c Content-Type: text/plain; charset=ISO-8859-1 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 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 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 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 --089e0115ec148244b404f6ac1f3c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, Oleh

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

=A0 =A0 (setq geiser-active-implementations '= ;(guile))
=A0 =A0 (setq geiser-default-implementation 'guile)

=
=A0That's all, there's no special settings for orgmode.<= /div>

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 bu= g?
>
> 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
>> =A0 (display "Hello Scheme in OrgMode")
>> #+END_SRC
>> -------8<--------------
>>
>> and run:
>>
>> emacs --batch --eval=3D'(load "~/.emacs.d/init.el")&= #39; ~/scheme-test.org= -f
>> org-html-export-to-html
>>
>> you will find the bug:
>>
>> `org-babel-scheme-execute-with-geiser' uses `current-message&#= 39; to get the
>> results of scheme code blocks, but `current-message' always re= turns nil in
>> batch mode, and this patch fixes this.
>>
>> --
>> --
>>
>> KDr2, http://kdr2.co= m
>
>
>
>
> --
> --
>
> KDr2, http://kdr2.com



--
=
--089e0115ec148244b404f6ac1f3c--