From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: [babel]: Some feedback after the first week usage Date: Thu, 5 Nov 2009 05:57:14 -1000 Message-ID: <506D0F4E-CEBB-44E7-A23C-2E6643FBED34@tsdye.com> References: <200911051727.44814.torsten.wagner@googlemail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0374337360==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N64iC-0008A1-SI for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 10:57:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N64i8-00084k-1l for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 10:57:24 -0500 Received: from [199.232.76.173] (port=42047 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N64i7-00084c-Tx for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 10:57:19 -0500 Received: from outbound-mail-31.bluehost.com ([69.89.18.151]:35568) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N64i7-0003sK-9P for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 10:57:19 -0500 In-Reply-To: <200911051727.44814.torsten.wagner@googlemail.com> 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: Torsten Wagner Cc: Org Mode Mailing List --===============0374337360== Content-Type: multipart/alternative; boundary=Apple-Mail-83--43439231 --Apple-Mail-83--43439231 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Nov 4, 2009, at 10:27 PM, Torsten Wagner wrote: > ... > 2. Is it possible (by a keyboard-shortcut) to execute all blocks of > a session > starting from top to down? Sometimes I make small changes here and > there and I > just like to say o.k. tangle all this together and execute it, > refresh and > show me all new results. This might be even combined by a org-mode > variable > which allow to define which results need to be refreshed before > saving the org- > mode file (something like #+EXECBYSAVE: name_of_session). > I press C-x C-s rather frequently without much thinking of it. If I > want make > sure that e.g., all generated output files (e.g. figures) are in > sync with the > code it would be nice to say C-x C-s and all external figures will be > recreated if necessary. > ... Aloha Torsten, Would something like run-code-blocks (below) do what you want? I put a source block like this at the top of my org-babel file, where I can find it quickly. #+srcrname: run-code-blocks #+begin_src python :noweb <> <> #+end_src #+srcname: block-1 #+begin_src python a = 1 a #+end_src #+srcname: block-2 #+begin_src python b = 1 b #+end_src All the best, Tom --Apple-Mail-83--43439231 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Nov 4, 2009, = at 10:27 PM, Torsten Wagner wrote:
...

2. Is it possible (by a keyboard-shortcut) to execute = all blocks of a session
starting from top to down? Sometimes I make = small changes here and there and I
just like to say o.k. tangle all = this together and execute it, refresh and
show me all new results. = This might be even combined by a org-mode variable
which allow to = define which results need to be refreshed before saving the org-
mode = file (something like #+EXECBYSAVE: name_of_session).
I press C-x C-s = rather frequently without much thinking of it. If I want make
sure = that e.g., all generated output files (e.g. figures) are in sync with = the
code it would be nice to say C-x C-s  and all external = figures will be
recreated if necessary.

...

Aloha = Torsten,

Would something like run-code-= blocks (below) do what you want?  I put a = source block like this at the top of my org-babel file, where I can find = it = quickly.

#+srcrname: run-code-blocks
#+begin_src python :noweb
<<block-1>>
<<block-2>>
#+end_src

<= div>#+srcname: block-1
#+begin_src python
a =3D = 1
a
#+end_src

#+srcname: = block-2
#+begin_src python
b =3D = 1
b
#+end_src

All the = best,
Tom 
= --Apple-Mail-83--43439231-- --===============0374337360== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0374337360==--