emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Dirk Scharff <dirk.scharff@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [feature request] tangle on org-special-edit
Date: Thu, 21 Jul 2011 11:19:16 -0600	[thread overview]
Message-ID: <87sjpzzgm0.fsf@gmail.com> (raw)
In-Reply-To: C3F117BE-0EC0-42B3-B630-3F79C8B756EA@googlemail.com

Dirk Scharff <dirk.scharff@googlemail.com> writes:

> Hello,
>
> Org-mode provides the function to edit code blocks in their languages
> native environment. If you want do literate programming you'll end up
> with web-syntax (<<the-block-to-be-included-here>> ) in the
> environment org-special-edit started.
>
> I'd like to purpose, that before opening the special language
> environment, the code-block should be tangled to a temporary
> file. Then a buffer should be stated with that file loaded in its
> native language environment. If you'd do that the code would really be
> executable and therefore debuggable and analyzable with the tools the
> programming language provides.
>
> You'll have to keep track on the tangled code blocks then. I think
> some info in comments should do the trick. I uploaded a mockup of what
> I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf
>

Hi Dirk,

If you would like to pop to a code block *with* the noweb references
expanded try the `org-babel-expand-src-block' command, which is bound to
"C-c C-v v".  This view of code blocks is not editable however because
there would be no way to propagate edits back into the original code
blocks -- consider an edit taking placed on the boundary between two
code blocks, or multiple nested noweb references.

There has been some interest in propagating changes back from tangled
code to Org-mode blocks (search these list archives for the term
"detangle") however such functionality is currently not implemented --
an `org-babel-detangle' function does exist but is not fully functional.

Best -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2011-07-21 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-21 13:38 [feature request] tangle on org-special-edit Dirk Scharff
2011-07-21 17:19 ` Eric Schulte [this message]
2011-07-21 18:55   ` Dirk Scharff
2011-07-21 19:10     ` Eric Schulte
     [not found] <A675877D-AA91-43CB-9F33-10B92F4A4701@googlemail.com>
2011-07-21 20:53 ` Dirk Scharff

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=87sjpzzgm0.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=dirk.scharff@googlemail.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).