From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Bug: org-babel-detangle broken [8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.4/share/emacs/24.4/lisp/org/)] Date: Thu, 6 Nov 2014 12:49:50 -0600 Message-ID: References: <53DA8405-FF8D-4C2F-ACD9-442CDCE3C3E7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmS86-0005Fz-6S for emacs-orgmode@gnu.org; Thu, 06 Nov 2014 13:50:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmS80-0000Mx-3y for emacs-orgmode@gnu.org; Thu, 06 Nov 2014 13:49:58 -0500 Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:45687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmS7z-0000Mp-RI for emacs-orgmode@gnu.org; Thu, 06 Nov 2014 13:49:52 -0500 Received: by mail-oi0-f42.google.com with SMTP id a3so1241774oib.1 for ; Thu, 06 Nov 2014 10:49:51 -0800 (PST) In-Reply-To: <53DA8405-FF8D-4C2F-ACD9-442CDCE3C3E7@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?Q?Jaakko_J=C3=A4rvi?= Cc: "emacs-orgmode@gnu.org" Jaakko and I were working on this together, hence the different version information. On Wed, Nov 5, 2014 at 8:04 PM, Jaakko J=C3=A4rvi wrote: > The org-babel-detangle function is not working. > Below is a description of how the issue manifests. > (Thanks to Grant Rettke for crafting the detailed description). > > 1 Attempt > =3D=3D=3D=3D=3D=3D=3D=3D=3D > > 1.1 Source input: ex1.org > =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 * Heading > =E2=94=82 > =E2=94=82 #+BEGIN_SRC js :comments noweb :tangle yes :padline no > =E2=94=82 function foo() {} > =E2=94=82 #+END_SRC > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > > 1.2 Tangled output: ex1.js > =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 // [[file:~/tmp/ex1.org::*Heading][Heading:1]] > =E2=94=82 function foo() {} > =E2=94=82 // Heading:1 ends here > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > > 2 Comments & Questions > =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90 > > 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. Further, > any modifications made in file ex1.js are reverted back to the state > of what existed after orgmode's export. > > > 3 Environment > =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90= =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 (print emacs-version) > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 "24.4.1" > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 (print org-version) > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 "8.2.8" > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 (print (pp-to-string org-babel-default-header-args)) > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 "((:session . \"none\") > =E2=94=82 (:results . \"replace\") > =E2=94=82 (:exports . \"code\") > =E2=94=82 (:cache . \"no\") > =E2=94=82 (:noweb . \"no\") > =E2=94=82 (:hlines . \"no\") > =E2=94=82 (:tangle . \"no\")) > =E2=94=82 " > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > ------------------------------------------------------------------------ > > > Emacs : GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS apple-appkit-134= 3.14) > of 2014-11-05 on somemachine > Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/Cellar/emac= s/24.4/share/emacs/24.4/lisp/org/) > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-comm= and-maybe > org-babel-hide-result-toggle-maybe org-babel-header= -arg-expand) > org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-= command-hook) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-confirm-shell-link-function 'yes-or-no-p > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-con= figure-edit-buffer) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-babel-pre-tangle-hook '(save-buffer) > org-mode-hook '((lambda nil > (org-add-hook (quote change-major-mode-hook) (quote org= -show-block-all) (quote append) > (quote local)) > ) > (lambda nil > (org-add-hook (quote change-major-mode-hook) (quote org= -babel-show-result-all) > (quote append) (quote local)) > ) > #[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook org-show-block-al= l append local] 5] > #[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook org-babel-show-re= sult-all append local] 5] > org-babel-result-hide-spec org-babel-hide-all-hashes) > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safel= y-maybe) > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers= org-cycle-hide-inline-tasks > org-cycle-show-empty-lines org-optimize-window-after-vi= sibility-change) > org-confirm-elisp-link-function 'yes-or-no-p > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > ) > > --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson