From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Tangle only code block body Date: Sat, 18 Feb 2012 12:11:30 -0500 Message-ID: <4353272.dqVUhrXq6y@arch-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RynpI-0003Wy-06 for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 12:12:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RynpH-0005i9-2c for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 12:11:59 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:56778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RynpH-0005hv-01 for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 12:11:59 -0500 Received: by qadz32 with SMTP id z32so2113058qad.0 for ; Sat, 18 Feb 2012 09:11:58 -0800 (PST) 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 Hi all, Is there a way to tangle just the body of code blocks, without any header argurments? For example when I tangle this file ##### begin example ##### * test #+name: testplot #+begin_src R :results output graphics :file tmp.png :tangle tmp.R plot(1:10) #+end_src ##### end example ##### I get png(filename="tmp.png") plot(1:10) dev.off() but I want just plot(1:10) I've tried removing the %flag setting in org-babel-exp-code-template but it didn't seem to have any effect. Thanks for any pointers, Ista