From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] link type to execute src_block Date: Thu, 25 Aug 2011 09:13:27 -0600 Message-ID: <87r549ikv4.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwbdm-0000J1-IW for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 11:14:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwbdk-00046a-9r for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 11:14:46 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:38429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwbdk-00046O-6d for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 11:14:44 -0400 Received: by yxn35 with SMTP id 35so1967944yxn.0 for ; Thu, 25 Aug 2011 08:14:43 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Torsten Wagner Cc: Org Mode Mailing List Torsten Wagner 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/