From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Jaakko_J=C3=A4rvi?= Subject: 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: Wed, 5 Nov 2014 20:04:45 -0600 Message-ID: <53DA8405-FF8D-4C2F-ACD9-442CDCE3C3E7@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmCRR-0003pD-Vt for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 21:04:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmCRN-00037N-3d for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 21:04:53 -0500 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:40526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmCRM-00037G-TD for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 21:04:49 -0500 Received: by mail-oi0-f49.google.com with SMTP id u20so82011oif.22 for ; Wed, 05 Nov 2014 18:04:48 -0800 (PST) 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: emacs-orgmode@gnu.org 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,=20 any modifications made in file ex1.js are reverted back to the state of what existed after orgmode's export. =20 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\") = =20 =E2=94=82 (:results . \"replace\") = =20 =E2=94=82 (:exports . \"code\") = =20 =E2=94=82 (:cache . \"no\") = =20 =E2=94=82 (:noweb . \"no\") = =20 =E2=94=82 (:hlines . \"no\") = =20 =E2=94=82 (:tangle . \"no\")) = =20 =E2=94=82 " =20 =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-1343.14) of 2014-11-05 on somemachine Package: Org-mode version 8.2.10 (release_8.2.10 @ = /usr/local/Cellar/emacs/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-command-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-configure-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-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook = org-babel-show-result-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-safely-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-visibility-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) )