From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Re: [PATCH] ob-scheme.el: Fix scheme blocks ignoring :results in formatting Date: Thu, 21 Jun 2018 18:56:29 +0100 Message-ID: <871sd0dnw2.fsf@ossau.homelinux.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW3p1-00076G-87 for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 13:56:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW3ow-0003cx-Aj for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 13:56:39 -0400 Received: from ossau.homelinux.net ([18.217.239.99]:52448 helo=ip-172-31-40-63.us-east-2.compute.internal) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW3ow-0003cO-54 for emacs-orgmode@gnu.org; Thu, 21 Jun 2018 13:56:34 -0400 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" To: Henry Blevins , emacs-orgmode@gnu.org Henry Blevins writes: > Currently, scheme babel blocks ignore :results header arguments like > 'verbatim' and attempt to format all output as tables. This patch corrects > that and performs the user supplied formatting. > > This is my first time contributing a patch, so I apologize if I have made > any mistakes in submitting this. Thanks for working on this Henry; as a fellow ob-scheme user, I appreciate it. > Currently, `org-babel-execute:scheme' ignores the user specified :result header > argument found in the :result-param parameter and process all output as a table. > The fix is to pass the `result' and :result-param to the `org-babel-result-cond' > function to invoke the corresponding formatting. > > For example, the following block incorrectly formats its output as a table: > > (list 1 2 3) > > | 1 | 2 | 3 | > > This patch results in the correct behavior: > > (list 1 2 3) > > : (1 2 3) > > Bringing it inline with the result using Emacs lisp: > > (list 1 2 3) > > : (1 2 3) But if I want the table output | 1 | 2 | 3 | will there still be a way to get it? (I'm sure I have org files that need this!) Regards, Neil