From mboxrd@z Thu Jan  1 00:00:00 1970
From: Avdi Grimm <groups@inbox.avdi.org>
Subject: Adding xmpfilter as a results type
Date: Fri, 10 Jun 2011 00:42:13 -0400
Message-ID: <BANLkTin75CmMqhnvApjzN7ZHuuxM3FSKXw@mail.gmail.com>
Reply-To: avdi@avdi.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([140.186.70.92]:48921)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <avdi@inbox.avdi.org>) id 1QUtYJ-0000Nr-7v
	for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 00:42:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <avdi@inbox.avdi.org>) id 1QUtYI-00077j-65
	for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 00:42:35 -0400
Received: from mail-qw0-f41.google.com ([209.85.216.41]:34532)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <avdi@inbox.avdi.org>) id 1QUtYI-00077d-3w
	for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 00:42:34 -0400
Received: by qwa26 with SMTP id 26so1444102qwa.0
	for <emacs-orgmode@gnu.org>; Thu, 09 Jun 2011 21:42:33 -0700 (PDT)
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: </archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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 <emacs-orgmode@gnu.org>

Something I've been thinking about lately...

If you have used Ruby you might be familiar with the 'xmpfilter'
command which comes in the 'rcodetools' package. It's a filter that
annotates a source file with the results of expressions, so:

    1 + 1 # =>

When run through xmpfilter would become:

    1 + 1 # => 2

There's already an rcodetools.el which makes it pretty easy to run
xmpfilter over the current region, or a whole buffer of Ruby code. But
it would be sweet if this could become an alternate :results type for
Ruby source listings, so I could just hit C-c C-c and get the
xmpfilter version of the code.

Any thoughts on how to make this work?

-- 
Avdi Grimm
http://avdi.org