emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Grant Rettke <gcr@wisdomandwonder.com>
To: "Jaakko Järvi" <jarvij@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-babel-detangle not working
Date: Sun, 2 Nov 2014 19:23:08 -0600	[thread overview]
Message-ID: <CAAjq1mduVzTFLwrK2d=tfkSTgOfW5B6Ldusrr+AzYQxa7hv4Bw@mail.gmail.com> (raw)
In-Reply-To: <3F7A7816-C3C3-48B8-B655-83776A9167C4@gmail.com>

Good evening,


1 Attempt
═════════

  Just tried out your example. So it is crystal clear, I did use the
  following:


1.1 Source input: ex1.org
─────────────────────────

  ┌────
  │ * Heading
  │
  │ #+BEGIN_SRC js :comments noweb :tangle yes :padline no
  │   function foo() {}
  │ #+END_SRC
  └────


1.2 Tangled output: ex1.js
──────────────────────────

  ┌────
  │ // [[file:~/tmp/ex1.org::*Heading][Heading:1]]
  │   function foo() {}
  │ // Heading:1 ends here
  └────


2 Comments & Questions
══════════════════════

  When I open the tangled output file, opened it in a buffer, put the
  cursor on line 2, and call `org-babel-detangle', the buffer switches
  to ex1.org, and then I get the message:

        Return to existing edit buffer ([n] will revert changes)?
        (y or n)

  Whether I choose yes or not, the current buffer always returns to
  ex1.js.

  Is this expected?


3 Environment
═════════════

  ┌────
  │ (print emacs-version)
  └────

  ┌────
  │ "24.3.1"
  └────

  ┌────
  │ (print org-version)
  └────

  ┌────
  │ "8.2.8"
  └────

  ┌────
  │ (print (pp-to-string org-babel-default-header-args))
  └────

  ┌────
  │ "((:eval . \"always\")
  │  (:padline . \"no\")
  │  (:noweb . \"no-export\")
  │  (:exports . \"both\")
  │  (:results . \"output replace\")
  │  (:comments . \"no\")
  │  (:session . \"none\")
  │  (:cache . \"no\")
  │  (:hlines . \"no\")
  │  (:tangle . \"no\"))
  │ "
  └────

  ┌────
  │ (print (pp-to-string org-babel-default-header-args:R))
  └────

  ┌────
  │ "((:session . \"*R*\"))
  │ "
  └────

On Sat, Nov 1, 2014 at 1:44 PM, Jaakko Järvi <jarvij@gmail.com> wrote:
> There seems to be something wrong with detangling.
> Would it be working, it would be a really wonderful feature.
>
> Detangling moves back to the org buffer and opens a source block editing buffer,
> but does not change to block in the org buffer.
>
> Is detangling working for some? I see this same issue described around
> 2013:
>
>   http://thread.gmane.org/gmane.emacs.orgmode/75290/focus=75299
>
> Below, a minimal test.org file and its tangled output.
>
> Thanks,
>
>   Jaakko Järvi
>
> - test.org --------------------------------------------
> * Heading
>
> #+BEGIN_SRC js :comments noweb :tangle yes :padline no
>   function foo() {}
> #+END_SRC
> -------------------------------------------------------
>
> - test.js ---------------------------------------------
> // [[file:~/test/test.org::*Heading][Heading:1]]
> function foo() {}
> // Heading:1 ends here
> -------------------------------------------------------



-- 
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

  reply	other threads:[~2014-11-03  1:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-01 18:44 org-babel-detangle not working Jaakko Järvi
2014-11-03  1:23 ` Grant Rettke [this message]
2014-11-03  1:43   ` Jaakko Järvi
2014-11-05  1:11     ` Grant Rettke
2014-11-05  2:26       ` Jaakko Järvi
2014-11-05 16:29         ` Grant Rettke

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='CAAjq1mduVzTFLwrK2d=tfkSTgOfW5B6Ldusrr+AzYQxa7hv4Bw@mail.gmail.com' \
    --to=gcr@wisdomandwonder.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarvij@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).