From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederick Giasson Subject: org-detangle seems broken Date: Fri, 1 Jun 2018 13:27:47 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001c70ad056d97e73d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOnqA-0004PU-SI for emacs-orgmode@gnu.org; Fri, 01 Jun 2018 13:27:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOnqA-0006HH-29 for emacs-orgmode@gnu.org; Fri, 01 Jun 2018 13:27:50 -0400 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:45363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOnq9-0006GJ-Rb for emacs-orgmode@gnu.org; Fri, 01 Jun 2018 13:27:49 -0400 Received: by mail-qt0-x22b.google.com with SMTP id i18-v6so22429728qtp.12 for ; Fri, 01 Jun 2018 10:27:49 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --0000000000001c70ad056d97e73d Content-Type: text/plain; charset="UTF-8" Hi Everybody, It appears that org-detangle is broken. I am using spacemacs, but even with a vanilla Emacs (emacs -Q) it appears to be broken. When I tangle a file with =:comments link= every things works as expected and the comments are added in the tangled file. When I just detangle that tangled file, everything get detangled as expected. If I change one or two lines, it normally works as expected. If I change more than 4 lines, I always get the error message "Not in a block file". Some debugging shows that the function =org-element-at-point= sometimes tag the element as =paragraph= instead of =src-block=, like if it doesn't know where it is... somehow. Does anybody use that function without experiencing this (apparent major) issue? Thanks, Take care, Fred --0000000000001c70ad056d97e73d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Everybody,

It appears tha= t org-detangle is broken. I am using spacemacs, but even with a vanilla Ema= cs (emacs -Q) it appears to be broken.

When I tang= le a file with =3D:comments link=3D every things works as expected and the = comments are added in the tangled file.

When I jus= t detangle that tangled file, everything get detangled as expected.

If I change one or two lines, it normally works as expect= ed.

If I change more than 4 lines, I always get th= e error message "Not in a block file".

S= ome debugging shows that the function =3Dorg-element-at-point=3D sometimes = tag the element as =3Dparagraph=3D instead of =3Dsrc-block=3D, like if it d= oesn't know where it is... somehow.

Does anybo= dy use that function without experiencing this (apparent major) issue?

Thanks,

Take care,
=
Fred
--0000000000001c70ad056d97e73d--