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: Tue, 8 Apr 2014 21:56:07 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e011769d1b6b52004f68859c3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXWVq-0004wZ-V1 for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 09:56:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXWVp-0001Sp-2m for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 09:56:30 -0400 Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:37829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXWVo-0001Sd-UH for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 09:56:29 -0400 Received: by mail-ob0-f173.google.com with SMTP id gq1so1028620obb.32 for ; Tue, 08 Apr 2014 06:56:28 -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: emacs-orgmode@gnu.org --089e011769d1b6b52004f68859c3 Content-Type: text/plain; charset=ISO-8859-1 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 --089e011769d1b6b52004f68859c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, folks

Has anyone reviewed this patc= h? 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
=A0 (display "Hello Scheme in OrgMode")
#+END_SRC<= /div>
-------8<--------------

and run= :

emacs --batch --eval=3D'(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 return= s nil in batch mode, and this patch fixes this.
--
--=A0



--
--=A0

KDr2, http://kdr2.com
--089e011769d1b6b52004f68859c3--