From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WLC/HoPJF2c6rAAAqHPOHw:P1 (envelope-from ) for ; Tue, 22 Oct 2024 15:49:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WLC/HoPJF2c6rAAAqHPOHw (envelope-from ) for ; Tue, 22 Oct 2024 17:49:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kaAtC2+i; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729612163; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=48mJ9VKChmpPRoGvBhRhtDNY4tgOJPJV6gChy3vIEbg=; b=dws5LQkDq9ZvAqJ23y4f8x8tpYDYh1SiKdiFJ7IIuRNFZ4iE941s/bTG/r4EG/7rPdSgKx SkQh21cXJN4kRFvdD2H4K/ol4hpfo18e1OoWE4DRF5VlQIY6tjQiQtB05Aom6kK34VPA3l nM62oflSMOas6mFpefiuBivGrgrun34IojiTHxjuu1l1N0mHQieRaBc5QTwtjcJJYJbWda jjeMpzrLYjJMQcD2htv+oAEAibMTHFOWgZ2Ke5O+U8Xypew4tI43ZlJrR0z5sy7GlCyKvU mmQstBMMS/8xDmwfin3oaNvFsKLbYSKLUbwlRJys/CdtZ4qhi7cK7pnyX5DpKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kaAtC2+i; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729612163; a=rsa-sha256; cv=none; b=u4VQe4/2UTdydG7fwVXFBfaAjEwQR9nWCnBZvOVHcdDKI0AD+UNnR9++jG2pL20G/Wo1OY AE85vpYSHEVHggSisUP+1unop7tAFtyELgDNZNmTSNpHGFae2D63Ui3aMVp3gE87ExkWAT TIDgFCmTOfBi8yaql0cp8ZFJi0xX+J0HqGl4HsM67w3r+ZWVgUmRY7GHHcBw366FlyI8K+ q+OdhIwFUz1s55ijLgFh/37ZwKobtPRW81LCKfFmWwv5DzgJk62JGmNT8dXDOgDjwxq953 sM0XwnWa9oAtRXycQkoUSQwfmpDZubB2G8hH4lcq0Rfu9+PPR52qnHNklAg6wA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5909F865B8 for ; Tue, 22 Oct 2024 17:49:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3H7V-0002Mo-SY; Tue, 22 Oct 2024 11:48:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3H7I-0002MZ-KG for emacs-orgmode@gnu.org; Tue, 22 Oct 2024 11:48:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3H7F-0007sS-3B for emacs-orgmode@gnu.org; Tue, 22 Oct 2024 11:48:16 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EA08C240028 for ; Tue, 22 Oct 2024 17:48:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729612088; bh=1XuSadURUns+l5U1yJ/S99ZWNG+Ss8U2lxanSwN0KhI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=kaAtC2+ij3SaSKScod3RJe2Vo7Kwf4QgWmA+0cZPlkqpYw+WdqxmJ3Luaj7gKKarc L5o7t2zgjlMQkd8LbT7QJK7YC89dGCaqgxyG2ZL5UV67pLOT4oxK730idAUKr1AGVV thsEsf1bWTeBPouxdQ+1C9q0u8QISYMUCefj3L98zvm1BxMs0TtnkACGGkfdPi637j pEpgZTDo4Ra+3ldBuhuSHiePYIEJglvPhnxR24MjR2CzpLI/bHFOMveYhoOurRD3ON 55XQBfqiv8dVF5W4FsD8WWvZZOUtqUQ0dNqkXD7N5cXOYCyuUBlpu0K+tj5GgAwhrS UJVAegiCZSoug== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XXxQv5kFYz9rxF; Tue, 22 Oct 2024 17:48:07 +0200 (CEST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: Noisy and unreliable (de-)tangling In-Reply-To: References: Date: Tue, 22 Oct 2024 15:49:49 +0000 Message-ID: <87jze016jm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.15 X-Spam-Score: -1.15 X-Migadu-Queue-Id: 5909F865B8 X-TUID: y7xpK95uPXvM Rudolf Adamkovi=C4=8D writes: > So, I started (de-)tangling heavily, to get some "IDE" support, and > oh-my, what a buggy mess it is. Not only are tangling comments > super-noisy, the `org-babel-detangle' function is *unreliable*. If > multiple sections have the same title, such as "Implementation", it > leads to *data loss*. > I think we should rethink this functionality with *readability* and > *reliability* in mind. The best solution, perhaps, would be to use IDs > for `:comments yes' if `org-id-link-to-org-use-id' is set. Otherwise, `org-id-link-to-org-use-id' should be respected once you use :comments link > Also ... anyone with some spare time on their hands? :) Usually, it is the person most annoyed by the lack of feature ;) > P.S. As a cherry on top, it would be also nice to have a minor mode that > highlights tangling comments, jumps back to the relevant Org heading, > etc. Maybe. But I'd prefer the more fundamental problems to be solved first. See https://list.orgmode.org/orgmode/20211017021707.Horde.p9ib-mMooANjOrUuCbc5E= Pl@www.vfemail.net/ https://list.orgmode.org/orgmode/87h6poqq75.fsf@localhost/ https://list.orgmode.org/orgmode/87bk8gk15d.fsf@ucl.ac.uk/ Here is a potential idea on how to make detangling more robust: https://leo-editor.github.io/leo-editor/appendices.html#the-mulder-ream-upd= ate-algorithm --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at