From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: [babel] feature request - tangle-and-evaluate-tangled-file Date: Tue, 6 Jul 2010 09:55:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0399055860==" Return-path: Received: from [140.186.70.92] (port=42346 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OW30Z-0000JT-Jk for emacs-orgmode@gnu.org; Tue, 06 Jul 2010 03:56:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OW30Y-0008VE-F3 for emacs-orgmode@gnu.org; Tue, 06 Jul 2010 03:55:59 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:59594) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OW30X-0008Tn-Vr for emacs-orgmode@gnu.org; Tue, 06 Jul 2010 03:55:58 -0400 Received: by pvc30 with SMTP id 30so313506pvc.0 for ; Tue, 06 Jul 2010 00:55:56 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============0399055860== Content-Type: multipart/alternative; boundary=0016364594e815e345048ab36272 --0016364594e815e345048ab36272 Content-Type: text/plain; charset=ISO-8859-1 Hi I am using org-babel for literate programming in R and I am using the following approach to test the code: 1) tangle 2) refresh buffer containing the tangled code (I use auto-revert-mode or global-auto-revert-mode for that) 3) load the tangled file into an existing R session via ESS R for evaluation This involves switching between buffers in always the same sequence. Therefore my suggestion: would it be possible to have a tangle-and-evaluate-tangled-file funcction, which is doing this automatically? C-c - 0 and org-babel-execute-buffer do not work in this case, as functions are split over several code blocks in R. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: Rainer@krugs.de Skype: RMkrug Google: R.M.Krug@gmail.com --0016364594e815e345048ab36272 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

I am using org-babel for literate programming in R and I am using= the following approach to test the code:

1) tangle
2) refresh bu= ffer containing the tangled code (I use auto-revert-mode or global-auto-rev= ert-mode for that)
3) load the tangled file into an existing R session via ESS R for evaluatio= n

This involves switching between buffers in always th= e same sequence. Therefore my suggestion:

would it be possible to ha= ve a tangle-and-evaluate-tangled-file funcction, which is doing this automa= tically?

C-c - 0 and org-babel-execute-buffer do not work in this case, as funct= ions are split over several code blocks in R.

Cheers,

Rainer<= br>

--
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Cons= ervation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germa= ny)

Centre of Excellence for Invasion Biology
Natural Sciences Building<= br>Office Suite 2039
Stellenbosch University
Main Campus, Merriman Av= enue
Stellenbosch
South Africa

Cell: =A0 =A0 =A0 =A0 =A0 +27 -= (0)83 9479 042
Fax: =A0 =A0 =A0 =A0 =A0 =A0+27 - (0)86 516 2782
Fax: =A0 =A0 =A0 =A0 = =A0 =A0+49 - (0)321 2125 2244
email: =A0 =A0 =A0 =A0 =A0Rainer@krugs.de

Skype: =A0 =A0 =A0 =A0 =A0RMk= rug
Google: =A0 =A0 =A0 =A0 R.M.Kr= ug@gmail.com

--0016364594e815e345048ab36272-- --===============0399055860== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0399055860==--