From mboxrd@z Thu Jan 1 00:00:00 1970 From: LanX Subject: Re: hyperlinks executing multiline code snippets? Date: Fri, 10 Dec 2010 23:14:49 +0100 Message-ID: References: <871v5psgn1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1475242682==" Return-path: Received: from [140.186.70.92] (port=55138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRBEp-00006f-On for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 17:14:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRBEo-0006AG-6n for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 17:14:51 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:44210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRBEn-0006A5-UF for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 17:14:50 -0500 Received: by wyj26 with SMTP id 26so4171618wyj.0 for ; Fri, 10 Dec 2010 14:14:49 -0800 (PST) In-Reply-To: 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: emacs-orgmode@gnu.org --===============1475242682== Content-Type: multipart/alternative; boundary=0016364c7e7dc52f67049715ae95 --0016364c7e7dc52f67049715ae95 Content-Type: text/plain; charset=ISO-8859-1 Hi Eric thanks, after some fiddling I was able to make it work... But do I get it right? The snippet has to be explicitely named, I can't tell the hyperlink just to take the next block? Before I start trying it, is it theoretically possible to write an on ob-multiline.el which parses the following lines? I.e. is the current "point" known at execution time? Out of curiosity, the manual says > The org-babel-load-languages controls which languages are enabled for evaluation (by default only emacs-lisp is enabled). Is it done out of security reasons? Cause it wouldn't be a problem to start a process via elisp and (shell-command ...) Next question: shell-command normally prints the stdout into the minibuffer, but org-hyperlink executions overwrite it with the return code. Is this behaviour configurable? Thanks for the help Rolf PS: ob-perl.el says ----- (defun org-babel-perl-initiate-session (&optional session params) "Return nil because sessions are not supported by perl" nil) ------ What is meant with supporting sessions? IIRC do packages like sepia.el fork a perl process allowing bidirectional communication with emacs. Or what kind of extra support is neccessary here? --0016364c7e7dc52f67049715ae95 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eric

thanks, after some fiddling I was able to make it work...
But do I get it right?

The snippet has to be explicitely named,= I can't tell the hyperlink just to take the next block?

Before = I start trying it, is it theoretically possible to write an on ob-multiline= .el which parses the following lines?

I.e. is the current "point" known at execution time?

O= ut of curiosity, the manual says

> The org-babel-load-langu= ages controls which languages are enabled for evaluation (by default only emacs-lisp is enabled).

I= s it done out of security reasons? Cause it wouldn't be a problem to st= art a=A0 process via elisp and (shell-command ...)

Next question:
shell-command normally prints the stdout into the minibuffer, but org-h= yperlink executions overwrite it with the return code.

Is this behav= iour configurable?

Thanks for the help
=A0 Rolf

PS: ob-per= l.el says
-----
(defun org-babel-perl-initiate-session (&optional session para= ms)
=A0 "Return nil because sessions are not supported by perl"= ;
nil)
------
What is meant with supporting sessions? IIRC do pack= ages like sepia.el fork a perl process allowing bidirectional communication= with emacs.

Or what kind of extra support is neccessary here?


--0016364c7e7dc52f67049715ae95-- --===============1475242682== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1475242682==--