From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8GMyGot4w2TWqwAASxT56A (envelope-from ) for ; Fri, 28 Jul 2023 10:12:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EN4BGot4w2Qt7QAAauVa8A (envelope-from ) for ; Fri, 28 Jul 2023 10:12:59 +0200 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 4156A3273A for ; Fri, 28 Jul 2023 10:12:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPIBN-0003GK-Cx; Fri, 28 Jul 2023 03:46:41 -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 1qPIBL-0003GA-LT for emacs-orgmode@gnu.org; Fri, 28 Jul 2023 03:46:39 -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 1qPIBJ-0004gV-JO for emacs-orgmode@gnu.org; Fri, 28 Jul 2023 03:46:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 40C87240028 for ; Fri, 28 Jul 2023 09:46:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690530395; bh=Ylwq+wMVdthfQPVerNnP2vh+trCmyqa3d/HWzcHH8Oo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Cmjf8DiVEvsDVTIiPmgW/0j1Rzz9f8fk0YE05y5VNiJwzMgthKRwbo7t9JPRi1Nz5 gCaTE6ykHXTBUR71h3pjbU0WLrobLrKjdC+oaOgnMrcesqrrQ0yQbiEy4T7CKa3WVg LlKcNruBSWIJfSKG+OVLqPtNtZQimuJhUZBOi4PDMxYBzOdxOoXsENQ/+4uH+J7b2w fSZWuse68aDZGFcJqoQAOkMqS8YFJ5hEm1MOlC97aBM+7Sq78czoESotZ8VBgP3ozl v7sYXitN6kp1uTyMRjXNr3KOHZl8gA+veRnoneBajs1xQroS8R+QRkCD/U+c6KAlEa fegYQtIQzjVlw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RC07t528Rz6tw0; Fri, 28 Jul 2023 09:46:34 +0200 (CEST) From: Ihor Radchenko To: Evgenii Klimov Cc: Org-mode Subject: Re: [FR] Add an option to use ID links during tangling In-Reply-To: <878rb1v3f8.fsf@lipklim.org> References: <878rb1v3f8.fsf@lipklim.org> Date: Fri, 28 Jul 2023 07:46:48 +0000 Message-ID: <87fs58fpg7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-Migadu-Queue-Id: 4156A3273A X-TUID: gnLsCPBXJWn2 Evgenii Klimov writes: > I see in the comment there the reason for that, but still would prefer > to use unique IDs in tangled files: the probability to overwrite wrong > source block under nonunique header overweights a side-effect of > creating new ID in Org file during tangling. Did you actually encounter such situation? `org-babel-detangle' is far from ideal in general. For example, detangling noweb references is pretty much guaranteed to create mess. > Can we do something with this? Add another option or provide an even > eager value in =org-id-link-to-org-use-id=. I do not like the idea of creating side effects in the original Org document during tangling. We can, however, use (org-id-link-to-org-use-id 'use-existing) to use the already present IDs. Ideally, we should improve the detangling to understand the order of blocks better instead of searching the containing heading independently. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at