From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2I08Onzp6WBRMgAAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 20:39:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iKQGNnzp6WDdeQAAB5/wlQ (envelope-from ) for ; Sat, 10 Jul 2021 18:39:56 +0000 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 26A011BC9A for ; Sat, 10 Jul 2021 20:39:56 +0200 (CEST) Received: from localhost ([::1]:42816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2HtK-0004My-9a for larch@yhetil.org; Sat, 10 Jul 2021 14:39:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Hsw-0004MY-Tz for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 14:39:30 -0400 Received: from libre.brussels ([144.76.234.112]:55802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2Hsv-0000PX-0p for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 14:39:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libre.brussels; s=mail; t=1625942358; h=from:from: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; bh=Xi6aTLTa3SdkuzgmPPY4/M+PXbaOB03ExSelOTvu7No=; b=fDPZnnGn3+eJUmUCZ6N9a/6G2wlZXGYtM0I7jCYT/YsJhpgB/BjAkGiGOIzOLsyLo3Z1kT a1aDnAhmOUTYdEukSYHLUzlW174uWNiTx271P/uZUmN6kVRyyLF5pg/PRfNHbeDyunZW7v aIXBuRV5VrDyI+DOVDws9urKTTzCyqM= MIME-Version: 1.0 Date: Sat, 10 Jul 2021 18:39:17 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: "Jonathan McHugh" Message-ID: <9eb31da73b12fcaf6820484834cc8cd3@libre.brussels> Subject: Re: [bug] Setting org-id-link-to-org-use-id to t creates IDs properties when tangling To: "Rodrigo Morales" , emacs-orgmode@gnu.org In-Reply-To: <87tul2ihhy.fsf@utec.edu.pe> References: <87tul2ihhy.fsf@utec.edu.pe> Received-SPF: pass client-ip=144.76.234.112; envelope-from=indieterminacy@libre.brussels; helo=libre.brussels X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bugs@gnu.support Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625942396; 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=Xi6aTLTa3SdkuzgmPPY4/M+PXbaOB03ExSelOTvu7No=; b=DzW137Elt792jwxj2fPPilLMRzb8B9fcC09/pLKhFfprrjmiccKD4O4JCNb3Ul5FCLEqcE vy1Vyrq0WYuJwnJua3dMkaiDThNB+j07AJVDetNmVde5EU2aEp1pHT8AWNJuKg8Uj2ae98 GmkKtTUKg5fJaPIZ27hxgaGnibWuGI7aU/OYi27c5scLURGzZpHYPE9hHimiRrjWMr+RYY 096V2ft+OVcYrl2EQLnW5lXaheD2GAi1pE66kCOwmwZrZDKAgWjlCaoLJpXEbjylCnE5E2 VfUnV6E+hCqnuBLIj3LU+ycvNnRkK990ZYp4/QhsdN+1iq2Q2kI6YFpqS/7eaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625942396; a=rsa-sha256; cv=none; b=siAi8cuJq6i687slq8q72X+lCsPoB6WK+fxSlfZUj7A1v0mwGhaYfV5YnpcxexW03UbXU9 8oms3nlC1vLSrtYbmra4PMZ5DyOw2wMNhuauh4cLuAYzfjDLm4U5vBkIgSNxbcNUnJZQN9 63ZuBrtI3ciD7tdVXlmBG2GewvMXwRVtM2v6q31Zypo/JQ4ctz9ztocWV8+l8oo/DCgayq S/LnoBA/Vy/yhHViqjLOa+27xWxlXspvEbCnXlCUfy4BR9rDL44kqk20mHAGepWukdVCuE 0npdJNscpv+va50z0WHGhSvj7Y2fQfeG0upoXp76YeJPWsWEdq9/SDf2dBKQEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=libre.brussels header.s=mail header.b=fDPZnnGn; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=libre.brussels header.s=mail header.b=fDPZnnGn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=libre.brussels (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 26A011BC9A X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: apfp8ThDTdEb Hi Rodrigo, Regarding the problem of large content volumes and unique identifiers I t= hought Id CC Jean Marc Louis. He has been building an Emacs approach to Hyperscope and has been conside= ring this facet (and others).=20 =3D> https://hyperscope.link/ Perhaps he may have some input? Jonathan McHugh =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D indieterminacy@libre.brussels July 10, 2021 12:36 PM, "Rodrigo Morales" w= rote: > * The issue >=20 >=20When setting org-id-link-to-org-use-id to t, an :ID: property is crea= ted > for each headline that contain at least one code block that is > tangled. >=20 >=20* Reproducing this issue >=20 >=201. Start emacs -Q >=20 >=202. Open a "*.org" file at a location where you have write permissions > (this is because, apparently, tangling only works when the file is > correctly saved so this way we get rid of this possible issue) >=20 >=203. Insert the following minimal working example into the buffer (you = can > find the Org Mode file attached to this mail) >=20 >=20#+BEGIN_SRC org > ,* foo >=20 >=20,#+HEADER: :tangle ~/Downloads/main.txt > ,#+BEGIN_SRC text > a > ,#+END_SRC >=20 >=20,* bar >=20 >=20,#+HEADER: :tangle ~/Downloads/main.txt > ,#+BEGIN_SRC text > a > ,#+END_SRC >=20 >=20,* fizz >=20 >=20,#+BEGIN_SRC text > a > ,#+END_SRC > #+END_SRC >=20 >=204. Execute the following commands >=20 >=20#+BEGIN_SRC emacs-lisp > (require 'org-id) > (setq org-id-link-to-org-use-id t) > #+END_SRC >=20 >=205. Now, execute org-babel-tangle (C-c C-v C-t). >=20 >=20At this point, a id property is created for the "foo" and "bar" > headlines because those are the only headlines that contain a code > block. This is what I got in emacs -Q >=20 >=20#+BEGIN_SRC org > ,* foo > :PROPERTIES: > :ID: 358560b4-2426-4d42-a498-ae16195daf3a > :END: >=20 >=20,#+HEADER: :tangle ~/Downloads/main.txt > ,#+BEGIN_SRC text > a > ,#+END_SRC >=20 >=20,* bar > :PROPERTIES: > :ID: 02217461-a744-42b2-b582-1a836568d686 > :END: >=20 >=20,#+HEADER: :tangle ~/Downloads/main.txt > ,#+BEGIN_SRC text > a > ,#+END_SRC >=20 >=20,* fizz >=20 >=20,#+BEGIN_SRC text > a > ,#+END_SRC > #+END_SRC >=20 >=20* Personal thoughts >=20 >=20In my opinion, this is undesired behavior because the goal of > org-id-link-to-org-use-id isn't creating an ID property for each > headline when performing tangling. >=20 >=20* Major undesired consequences >=20 >=20The following is an scenario in which this issue causes major undesir= ed > consequences: Consider the following scenario >=20 >=20+ you have 1000 headlines in an Org Mode file >=20 >=20+ all of those headlines don't have an ID property (because you are n= ot > interested in uniquely identifying all of those headlines through an ID= ) >=20 >=20+ all of those headlines contain at least one code block that is tang= led >=20 >=20Because of this issue, the following would be added for each headline >=20 >=20#+BEGIN_SRC org > ,* my headline > :PROPERTIES: > :ID: <> > :END: > #+END_SRC >=20 >=20and this have the following undesired consequences >=20 >=20+ You would end up with 3000 lines in your Org Mode file because of t= he > id properties even when you weren't interested in creating an ID for > each of those headlines. >=20 >=20+ You would have 1000 more entries in org-id-locations-file (again, e= ven > where you weren't interested in creating an ID for each of those > headlines) >=20 >=20--=20 >=20La informaci=C3=B3n contenida en este e-mail y sus anexos es confiden= cial,=20 >=20privilegiada y est=C3=A1 dirigida exclusivamente a su destinatario, e= n=20 >=20consecuencia, solo puede ser utilizada por aquel. Si usted no es el= =20 >=20destinatario original, no deber=C3=A1 examinar, usar, copiar o distri= buir este=20 >=20mensaje o la informaci=C3=B3n que contiene. Si lo recibe por error, p= or favor=20 >=20reenv=C3=ADelo a la persona que se lo envi=C3=B3 y elim=C3=ADnelo. Cu= alquier retenci=C3=B3n o=20 >=20uso total o parcial no autorizada de este mensaje est=C3=A1 estrictam= ente=20 >=20prohibida y sancionada por ley. >=20 >=20--=20 >=20[[[ If you see a signature in spanish below/above this message, pleas= e > omit it. It is automatically inserted in all my messages due to the > internal privacy policies of the organization that owns the domain of m= y > email address. ]]]