From mboxrd@z Thu Jan 1 00:00:00 1970 From: D Bro Subject: Viewing tangled source code as source code block result? Date: Mon, 24 Apr 2017 17:57:58 -0500 Message-ID: <439A2CD1-C779-4E22-A6E2-49016EE56CEF@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_F0ACF38B-1764-480E-A88B-7FD14C604AB8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2mvk-0004B7-CI for emacs-orgmode@gnu.org; Mon, 24 Apr 2017 18:58:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2mvj-00022I-9R for emacs-orgmode@gnu.org; Mon, 24 Apr 2017 18:58:04 -0400 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:33358) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2mvj-000222-5J for emacs-orgmode@gnu.org; Mon, 24 Apr 2017 18:58:03 -0400 Received: by mail-io0-x234.google.com with SMTP id k87so206284796ioi.0 for ; Mon, 24 Apr 2017 15:58:02 -0700 (PDT) Received: from ?IPv6:2605:a601:41a0:9800:85f3:c786:21c0:e4fe? ([2605:a601:41a0:9800:85f3:c786:21c0:e4fe]) by smtp.gmail.com with ESMTPSA id a141sm908851itc.28.2017.04.24.15.58.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 15:58:01 -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 --Apple-Mail=_F0ACF38B-1764-480E-A88B-7FD14C604AB8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I was wondering if there is any simple way of displaying the actual = tangled code in the org-mode buffer and resulting exports. One can = #+INCLUDE the resulting file, seeing it in the export; one can M-x ffap = the #+INCLUDE file to see it in a buffer; one can do a hack like = shelling out and calling cat; I guess you could write an lisp function = that hooked org-babel-tangle, grabbed the buffer, and formatted it as = output (haven=E2=80=99t figured out how to do that one yet). One could = also do a #+src_begin org block. But what about a simple :results setting, say =E2=80=98tangle=E2=80=99 = or =E2=80=98noweb=E2=80=99? Whose #+RESULTS: was actually a = #+src_=E2=80=A6#end_src block with appropriate language tagging that = could get syntax highlighted? Am I missing something here. Is there a non-hackish way of composing = existing features to print the resulting source of a noweb block, in = addition to actually executing it and displaying the value/output?= --Apple-Mail=_F0ACF38B-1764-480E-A88B-7FD14C604AB8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I was wondering if there is any simple way of displaying the = actual tangled code in the org-mode buffer and resulting = exports.  One can #+INCLUDE the resulting file, seeing it in = the export; one can M-x ffap the #+INCLUDE file to see it in a buffer; = one can do a hack like shelling out and calling cat; I guess you could = write an lisp function that hooked org-babel-tangle, grabbed the buffer, = and formatted it as output (haven=E2=80=99t figured out how to do that = one yet). One could also do a #+src_begin org block.

But what about a simple :results = setting, say =E2=80=98tangle=E2=80=99 or =E2=80=98noweb=E2=80=99? =  Whose #+RESULTS: was actually a #+src_=E2=80=A6#end_src block with = appropriate language tagging that could get syntax = highlighted?

Am = I missing something here.  Is there a non-hackish way of composing = existing features to print the resulting source of a noweb block, in = addition to actually executing it and displaying the = value/output?
= --Apple-Mail=_F0ACF38B-1764-480E-A88B-7FD14C604AB8--