From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-detangle seems broken Date: Sat, 02 Jun 2018 12:17:20 +0200 Message-ID: <87wovhmr0v.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fP3bC-0008ID-7s for emacs-orgmode@gnu.org; Sat, 02 Jun 2018 06:17:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP3b8-0000f3-PD for emacs-orgmode@gnu.org; Sat, 02 Jun 2018 06:17:25 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:38059) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fP3b8-0000cb-JQ for emacs-orgmode@gnu.org; Sat, 02 Jun 2018 06:17:22 -0400 In-Reply-To: (Frederick Giasson's message of "Fri, 1 Jun 2018 13:27:47 -0400") 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: Frederick Giasson Cc: emacs-orgmode@gnu.org Hello, Frederick Giasson writes: > 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? Could you provide an ECM demonstrating the issue? Thank you. Regards, -- Nicolas Goaziou