emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Torsten Wagner <torsten.wagner@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [babel] link type to execute src_block
Date: Thu, 25 Aug 2011 09:13:27 -0600	[thread overview]
Message-ID: <87r549ikv4.fsf@gmail.com> (raw)
In-Reply-To: CAPaq-gMR5RMKnetbdOU7fUWjzuDhx1BZMkgpgCoQF4293PKEGw@mail.gmail.com

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi,
> is there a way already to execute a (named source block) by creating a
> link type?
> I checked the manual and there is a link type for shell and elisp but
> it seems not for babel.
> Something like
>
> [[babel: src_block_name()][Text]]
>
> With this, one could create all kind of little features within an org-file
> * start often used shell, python, and other language scripts,
> * start little GUIs in a different programming  language (e.g., java
> works fine) to allow a more mouse centric input (there was a tablet
> discussion recently)
> * link blocks to descriptive text making reproducible research more
> readable  (e.g. ...after the applying a _FFT-transform_, the dataset
> was _plotted_....)
>
> Would be nice to have the option to either execute the link and to
> jump to the code block
>

No such link type exists, although the custom link creation
functionality is fairly powerful so I would imagine that you could
create such a link type locally without any requirement to modify the
Org-mode source code.  If you do this it would be a fun thing to share
on the list and/or on worg.

As an interim solution the `sbe' function could be used inside of an
elisp link to easily execute code blocks in the same way it is used in
table formula.

Best -- Eric

>
> All the best
>
> Totti
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

      reply	other threads:[~2011-08-25 15:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 14:24 [babel] link type to execute src_block Torsten Wagner
2011-08-25 15:13 ` Eric Schulte [this message]

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=87r549ikv4.fsf@gmail.com \
    --to=schulte.eric@gmail.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).