From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Johan_W=2E_Kl=C3=BCwer?= Subject: org-babel source block unevaluated into variable? Date: Wed, 25 Oct 2017 16:21:47 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11c00e1aa251d3055c5fc697" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7MZ3-00067O-Hk for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 10:21:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7MZ2-0005ty-Nv for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 10:21:49 -0400 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:57036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7MZ2-0005tG-Is for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 10:21:48 -0400 Received: by mail-qt0-x232.google.com with SMTP id z28so175373qtz.13 for ; Wed, 25 Oct 2017 07:21:48 -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" To: emacs-orgmode@gnu.org --001a11c00e1aa251d3055c5fc697 Content-Type: text/plain; charset="UTF-8" Is there a way to assign the uninterpreted content of an executable source block to a variable? Preferably, using a :var header argument? That is, return the text in the block, not the result of evaluating it, and preferably with noweb references expanded. "example" blocks return text the way I want, but they can't be evaluated, and of course noweb is ruled out for them. The function org-babel-ref-resolve could to the job if there were a switch to block evaluation. Why this is interesting: I wish to use url-hexify-string on the text of a named SPARQL query. Cheers, Johan --001a11c00e1aa251d3055c5fc697 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is there a way to assign the uninterpreted content of= an executable source block to a variable? Preferably, using a :var header = argument? That is, return the text in the block, not the result of evaluati= ng it, and preferably with noweb references expanded.

"example" blocks return text the way I want, but they can= 't be evaluated, and of course noweb is ruled out for them.

The function org-babel-ref-resolve could to the job if th= ere were a switch to block evaluation.


Why this is interesting: I wish to use url-hexify-string on the tex= t of a named SPARQL query.

Cheers, Johan
=
--001a11c00e1aa251d3055c5fc697--