From: "Thomas S. Dye" <tsd@tsdye.com>
To: Torsten Wagner <torsten.wagner@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [babel]: Some feedback after the first week usage
Date: Thu, 5 Nov 2009 05:57:14 -1000 [thread overview]
Message-ID: <506D0F4E-CEBB-44E7-A23C-2E6643FBED34@tsdye.com> (raw)
In-Reply-To: <200911051727.44814.torsten.wagner@googlemail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1211 bytes --]
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
#+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
[-- Attachment #1.2: Type: text/html, Size: 1998 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2009-11-05 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 8:27 [babel]: Some feedback after the first week usage Torsten Wagner
2009-11-05 15:57 ` Thomas S. Dye [this message]
2009-11-06 1:34 ` Torsten Wagner
2009-11-05 17:27 ` Dan Davison
2009-11-05 22:48 ` Tom Short
2009-11-06 18:56 ` Thomas S. Dye
2009-11-06 0:02 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=506D0F4E-CEBB-44E7-A23C-2E6643FBED34@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=torsten.wagner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).