From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: How to write a org babel hook, which can manupulate result Date: Wed, 26 Mar 2014 21:17:15 +0800 Message-ID: <87ha6lje04.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSnn4-00045s-Bi for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 09:22:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSnmu-0004Fu-6W for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 09:22:46 -0400 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:50990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSnmu-0004Eh-1F for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 09:22:36 -0400 Received: by mail-pd0-f169.google.com with SMTP id fp1so1872345pdb.28 for ; Wed, 26 Mar 2014 06:22:34 -0700 (PDT) Received: from news.tumashu-localhost.org ([120.4.230.251]) by mx.google.com with ESMTPSA id qw8sm58264247pbb.27.2014.03.26.06.22.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 06:22:33 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1WSnhj-0001mQ-3h for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 21:17:15 +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: orgmode Hi: I want to write a hook to menupulate org babel output, The problem is: How can I get two points info: [pointA] and [pointB] in my hook function? #+begin_src R :results output raw drawer tbl <- data.frame(a=c(1,2,3),b=c(3,2,1)) print(ascii(tbl),type="org") #+END_SRC #+RESULTS: :RESULTS: [pointA] | | a | b | |---+------+------| | 1 | 1.00 | 3.00 | | 2 | 2.00 | 2.00 | | 3 | 3.00 | 1.00 | [pointB] :END: --