From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avdi Grimm Subject: Adding xmpfilter as a results type Date: Fri, 10 Jun 2011 00:42:13 -0400 Message-ID: Reply-To: avdi@avdi.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; Thu, 09 Jun 2011 21:42:33 -0700 (PDT) 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 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