emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] link type to execute src_block
@ 2011-08-25 14:24 Torsten Wagner
  2011-08-25 15:13 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Torsten Wagner @ 2011-08-25 14:24 UTC (permalink / raw)
  To: Org Mode Mailing List

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

All the best

Totti

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [babel] link type to execute src_block
  2011-08-25 14:24 [babel] link type to execute src_block Torsten Wagner
@ 2011-08-25 15:13 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2011-08-25 15:13 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: Org Mode Mailing List

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-25 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 14:24 [babel] link type to execute src_block Torsten Wagner
2011-08-25 15:13 ` Eric Schulte

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).