emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] ob-scheme.el: Fix scheme code blocks execution error in


From: KDr2
Subject: Re: [O] [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode
Date: Fri, 11 Apr 2014 13:18:49 +0800

Hi, Eric

I'm sorry for that I used `flet' in the patch, It's a easy way to let function `current-message' work in batch mode, so I used it even I saw that emacs says `flet' is obsolete, I'm sorry for that. 

And I made a new patch(attachment) using `defadvice' for `message' to capture the message in batch mode, after the message being captured, the advice function is removed. Is this way OK?

And I also sent a request email to address@hidden, and now waiting the reply.

Thanks.


On Fri, Apr 11, 2014 at 10:45 AM, Eric Schulte <address@hidden> wrote:
We can no longer use `flet' in the Org-mode code base, please re-work
this patch w/o flet.

Also, I don't see your name in the list of contributors, and (I believe)
this patch is too large to apply w/o FSF assignment.  See the following
page on how to contribute to Org-mode.

  http://orgmode.org/worg/org-contribute.html

KDr2 <address@hidden> writes:

> 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.
>
> --

--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



--
-- 

KDr2, http://kdr2.com

Attachment: 0001-lisp-ob-scheme.el-Fix-scheme-code-blocks-execution-e.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]