From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode Date: Thu, 10 Apr 2014 20:45:47 -0600 Message-ID: <87sipky46c.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYRTe-0006wN-Bt for emacs-orgmode@gnu.org; Thu, 10 Apr 2014 22:46:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYRTY-0001Bf-6S for emacs-orgmode@gnu.org; Thu, 10 Apr 2014 22:46:02 -0400 Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:61620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYRTY-0001Ba-1g for emacs-orgmode@gnu.org; Thu, 10 Apr 2014 22:45:56 -0400 Received: by mail-ie0-f179.google.com with SMTP id lx4so4847495iec.38 for ; Thu, 10 Apr 2014 19:45:55 -0700 (PDT) In-Reply-To: (KDr2's message of "Wed, 2 Apr 2014 11:48:11 +0800") 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: KDr2 Cc: emacs-orgmode@gnu.org 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 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