From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: passing the contents of a block as an escaped string Date: Tue, 24 Jun 2014 08:04:49 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzJqx-0001EE-0K for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 02:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzJqp-000751-Fr for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 02:05:10 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:29093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzJqp-000704-AC for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 02:05:03 -0400 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: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, I'm trying to write some filters from Pygments, and to record what I'm doing and make my life simpler, I'm doing it in an orgmode buffer. In that buffer, I have the code I want to highlight in a source block, and the python code for the Pygments extension in another block. I'm trying to find out how to pass the escaped code from the source to highlight to the python buffer. I tried using noweb, but the expansion is verbatim and python complains about the line breaks. So I'm wondering if there is a way to: =2D pass a source block as an escaped string to another source block, or =2D save a source block to a temporary file, and pass the file name to a second source block. Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJTqRUHAAoJEAQNCjtO0uXHd/4IALikdBFajpDvMCea5feBlvgT vz6NdmsdJRzbzd38xpuK6rXDRjLVpw5ouLLsHbCiXfC2YF1O1+a0YfVhNmClZsFU X/AyYdqiZKTYdvEG8sE3Wz+XxWl67qrM14bLF3Tsudeeqq0exB0gnltrxkhC/7BU zE0/gafm2wkNpXxbgRhg8ZbFJXrQLRvmtvJ++21bXGXBr+g4hzAJOj6RlVlJi/dZ 3f6k7ep25+u70VL0gO2ogLq1TjPczi9hNxXDOSFy/AfUDRBfbacbC2ePHeFhWwe8 PhK3CDkQ9gFp6If731v7TA8FXVODU/PzaPmrYG0psu0gCLenlqzrcTYZD7S9+VI= =gRHt -----END PGP SIGNATURE----- --=-=-=--