From: D Bro <dabroyoh@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Viewing tangled source code as source code block result?
Date: Mon, 24 Apr 2017 17:57:58 -0500 [thread overview]
Message-ID: <439A2CD1-C779-4E22-A6E2-49016EE56CEF@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
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’t 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 ‘tangle’ or ‘noweb’? Whose #+RESULTS: was actually a #+src_…#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?
[-- Attachment #2: Type: text/html, Size: 1263 bytes --]
reply other threads:[~2017-04-24 22:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=439A2CD1-C779-4E22-A6E2-49016EE56CEF@gmail.com \
--to=dabroyoh@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).