emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Mohamed HIBTI <mohamed.hibti@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel (org-babel-detangle)
Date: Wed, 13 Apr 2011 10:50:32 -0600	[thread overview]
Message-ID: <874o62m6xz.fsf@gmail.com> (raw)
In-Reply-To: <loom.20110413T151221-553@post.gmane.org> (Mohamed HIBTI's message of "Wed, 13 Apr 2011 13:16:06 +0000 (UTC)")

Hi Mohamed,

You have a small typo in your header arguments, ":comment" should be
":comments".  After that change then code block should be tangled
wrapped in comments, and then Babel can use these comments to jump back
to the original org-mode file.

That said, the detangle mechanisms are in need of some work,
specifically regarding their use of the Org-mode's link resolution,
which doesn't currently make it possible to programmatically jump to the
results of a link.  So, until some time is spent fixing up the
detangling machinery inside of Babel, you may not find detangling to be
extremely robust.

Best -- Eric

Mohamed HIBTI <mohamed.hibti@gmail.com> writes:

> Dear all,
> I have a problem with detangling org-babel fragments. 
> May be this is because XML is not a supported feature/or I use it in a wrong way.
> Any help is welcome.
>
> My org-file is below. I can tangle this file to obtain the XML file but 
> when I try to jump to org I get the message "not in tangled code".
>
> *** TODO Question that needs validation
>     :PROPERTIES:
>     :ID:       2788f65d-5613-40c1-80ae-ae966f4bb398
>     :END: 
> #+BEGIN_SRC XML :tangle ./sample04.xml :comment yes			
> <define-fault-tree name="ACP-2">
>   <!-- Le problme de cette question -->
>   <!---->
>         <label>AC Power System Bus 2</label>
>         <define-gate name="@ACP-2-1" code:calctype="Q">
>                 <label>AC Power System Bus 2 fails</label>
>                 <and>
>                 <gate name="@ACP-2-2"/>
>                         <gate name="@ACP-2-3"/>
>                 </and>
>         </define-gate>
> </define-fault-tree>
> #+END_SRC
>
> Best regards,
>
> Mohamed
>
>
>

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

  reply	other threads:[~2011-04-13 16:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13 13:16 org-babel (org-babel-detangle) Mohamed HIBTI
2011-04-13 16:50 ` Eric Schulte [this message]
2011-04-13 18:01   ` Mohamed HIBTI
2011-04-14  9:19   ` Mohamed HIBTI
2011-04-14 14:47     ` Eric Schulte
2011-04-15  8:36       ` Mohamed HIBTI
2011-04-15 16:45       ` Mohamed HIBTI

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=874o62m6xz.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mohamed.hibti@gmail.com \
    /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).