From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: How to write a org babel hook, which can manupulate result Date: Wed, 26 Mar 2014 23:32:29 +0800 Message-ID: <87d2h9j7qq.fsf@news.tumashu-localhost.org> References: <87ha6lje04.fsf@news.tumashu-localhost.org> <87k3bh84ry.fsf@tanger.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSwQ7-00039d-TP for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 18:35:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSwQ0-0001ak-Fn for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 18:35:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:45589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSwQ0-0001Zz-6W for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 18:35:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WSwPy-0005ae-Uj for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 23:35:30 +0100 Received: from 120.4.232.126 ([120.4.232.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Mar 2014 23:35:30 +0100 Received: from tumashu by 120.4.232.126 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Mar 2014 23:35:30 +0100 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@gnu.org Daimrod writes: > Feng Shu writes: > >> Hi: > Hi Feng, > > Look at the :post header argument. > (info "(org) post") Thanks ... > >> 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: --