From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg Subject: Re: Problem with org-babel-detangle Date: Sun, 31 Jan 2016 12:32:39 -0800 Message-ID: <87fuxdxzfc.fsf@posteo.de> References: <87h9hvkiq6.fsf@posteo.de> <87oac11qbi.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPyg0-0003j5-PZ for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 15:32:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPyfx-0005iW-JR for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 15:32:52 -0500 Received: from mout01.posteo.de ([185.67.36.65]:49493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPyfx-0005hp-DA for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 15:32:49 -0500 Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id 2634F209A4 for ; Sun, 31 Jan 2016 21:32:47 +0100 (CET) In-reply-to: <87oac11qbi.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-org list --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks for looking into it. Detangling seems to work now but there is one problem left: If I open the org-buffer and the tangled files side by side, and then detangle, both windows show the org-buffer afterwards. I think detangling should leave the buffers alone. Perhaps there is a misplaced save-excursion somewhere? Thanks again, Nicolas! Titus On 2016-01-31 Sun 11:50, Nicolas Goaziou wrote: > Hello, > > Titus von der Malsburg writes: > >> I tangeled the following org-mode file: >> >> #+BEGIN_SRC R :tangle /tmp/test.R :comments link >> 1 + 2 >> #+END_SRC >>=20=20=20 >> #+BEGIN_SRC R :tangle /tmp/test.R :comments link >> 3 + 4 >> #+END_SRC >> >> The result was: >> >> ## [[file:test.org][No\ heading:1]] >> 1 + 2 >> ## No\ heading:1 ends here >>=20=20=20 >> ## [[file:test.org][No\ heading:2]] >> 3 + 4 >> ## No\ heading:2 ends here >> >> Then I changes =E2=80=9C3 + 4=E2=80=9D to =E2=80=9C3 + 5=E2=80=9D, revis= ited the org buffer, and >> executed `org-babel-detangle'. >> >> Expected behavior: The second code block in org file is updated to conta= in >> =E2=80=9C3 + 5=E2=80=9D. >> >> Actual behaviour: I find myself in a buffer containing test.R, the >> cursor is inside the first code block at =E2=80=9C1=E2=80=9D, the second= code block=E2=80=99s >> content in the org buffer is highlighted, and I have an edit buffer for >> that code block. The content of the second code block is not updated. > > Fixed. Thank you. > > Regards, --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWrm9oAAoJEK40WfPGE2idMAsH/RvDkJQlld4J07VwUIbqcDAE wqTZ0JSGjxxKH1/iJv+KQ5TAgv4NCK+57rdysrtihJbCtWDZnQuUK+OOr0UhzPrg Le0elNr2RHmqhWsHJ6kRJzzDALx3nJdmVHOwaDeuuXq1VzHVxJbVIvSp4zmRkC52 aC1sBD83A6byJ/tNJlFdw0KYnRDh8oBemOvibo4kQmReKMtan3PMPe7ZpUVJSei2 Q1109c9ZyCPuNyYOQ/7LgI5ycrqFVP0TuFSmaXLijTPKwE+X7Fqm/PW2SScL6Vdl uZUQkazvO3LYtY2xep//nkB8jRTgsb9pAkrOILTIBbC+JypBWNV4h16+u6MdBr4= =Bqmi -----END PGP SIGNATURE----- --=-=-=--