From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6EiiLERty2bWIQAAe85BDQ:P1 (envelope-from ) for ; Sun, 25 Aug 2024 17:43:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6EiiLERty2bWIQAAe85BDQ (envelope-from ) for ; Sun, 25 Aug 2024 19:43:32 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=kwjH8HkM; dmarc=pass (policy=quarantine) header.from=slmails.com; 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"; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724607812; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1DJTWXXYtLFRFZAPljHBiPwVUBxzIJlElxEiH443y+8=; b=LDN/gUin4yJBpou2Anm5g8KUFifVkRjnzP2KVXIkaZWmFvV/PTgxKSpCXuM9ZSRJx5N6cw VK42oQ1D2eaptIlV5vK6CeHzm8GbHmQzP1THbb1kM8VlufiMQ1WZCpq4dBr/jeCao8CrCF ZVzQ2ivtuZe+169rHjzhVJgON+fCUSSOiMD5aFlBBzWNGt2skdb53iK4pAR6WGff/SE3IH Opj/R6sv9Ot+VV4qLk4vLukMpYrKCnJ1GyUNz1zcjILWM2J2LxDBp8aYBP7+SWovCxH3EZ Dc5jRLNwlfbPv3trj+iQxJZCSwojgIAtWtvotCJfTa+c6w5aoqpBKbaZPbG6qQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1724607812; a=rsa-sha256; cv=pass; b=GwEa8ax0GYY41YNU2/sgrPSOMieZXxyATAWt5JK8j5KSaAndtejltdhPNRSAqqSyIsF6Nu VsCibvHgO5kNbMp1SuAroLRME1Onuy0ElTCVqWeVmnUzEoZmyWNquJr4+mKc4QkgOHouUw 7k0NwgMi+Y259rA396ZlMQoZK/xhRk3PfGMcSU1njDWKNClpJdlMOUyZDPvyItvRtqrOOT AzSN9OIfBGc6smlIAkNLKxKOeWlk+uRe8LWfgvKvTTy+kADHrkvZAHJX+NUXEmsDODFmQd lAOXUMJqiaowmoTY2NQB7c7wFzkuj0Wb5M4Cm5LS+MxJTv90oKZGxDxpB2KnvA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=kwjH8HkM; dmarc=pass (policy=quarantine) header.from=slmails.com; 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"; arc=pass ("simplelogin.co:s=arc-20230626:i=1") 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 70C1214DC5 for ; Sun, 25 Aug 2024 19:43:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siHG5-0002Zr-It; Sun, 25 Aug 2024 13:42:33 -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 1siHG4-0002ZQ-4S for emacs-orgmode@gnu.org; Sun, 25 Aug 2024 13:42:32 -0400 Received: from mail-200167.simplelogin.co ([176.119.200.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siHG1-0008MZ-Ib for emacs-orgmode@gnu.org; Sun, 25 Aug 2024 13:42:31 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1724607746; cv=none; b=mrbTqWopiagaXU2/C3G8iq6NVwrgSIo9xbD7R5PLn3PniaMMwRhLARe/AVL5+HIDFsDaPWQBKcBpGWfbEvWki/9Ieehd2lYKqxhQPXJhmSi+4+XTK/FvTDgtpVr/IWqzVDyHOt0v4vxrY7xfMOA/wa8agoyI/zu67ioC3yU6kNx9wG4moFNFTkPnLQOD/ZVQr/0vIV+f94/yDg1zJRsaH3qBgrj+XoxtxQmsetrQGYmcP9CTvu0SLIHng+ZRDXBCXUGn5V0Y/SMEz1qDhRE1IJ8bK6ygmtovP/8b8H/BGejIpr1mK3Ng2fkPaeyBU3l5FeXAYNEifzBaIhgxabmf5Q== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1724607746; c=relaxed/simple; bh=W7z1dJAxU0LKyUlLyKSjkNF180WCXUAshtZYPEwmJp8=; h=Date:Subject:From:To; b=OrNVclsjjVS+bwZ43eVb/L/OiCwvTGQCSZbvmyU2wqBJwWchqXLQMGlm9K9aTk9gKbPxmXzS+W/J062VoHMDrc4qDqwSy/KEKyRsTnZNE3Lg/zCEeY4xkTtRlvDXKTcwnVEn2SWPRLnsI3yZro+rjWACPkEaAYfd9AnmWZF0h8A2+Mp9UZyBn+OxTLcSsbeP/qzmgIUaERytal1VnsZhhYtccpAefL/yOCJ4CFDgIjbJW4X2seWWUWspR1Gvz9A9Vxt2gnniWQrK9jJrrIqpXLIwa0VPULzEBzstCwIq3tjdZwzGhhAGw0BUQvscmsBdWHvcAZ2dN73JyiILGkovMg== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1724607746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1DJTWXXYtLFRFZAPljHBiPwVUBxzIJlElxEiH443y+8=; b=kwjH8HkMhGgV9jGrmC63Pwh9e63kfiTLDudR+J6XcISfY/8N6e4pPkPQmTm5IYfxKHeVaL j84k7IwEAhvz4JBHEyWp9Kx0Ly3dD1R0rEYlBfTQqpzV8WfU8fosG+Uq/3wj3B3g6FJ5iB XxJ/wBRvegOAjGFc1e9+iIYqtBSpSoM= Content-Type: multipart/alternative; boundary="------------LqXrWNKGiWJtADz8sGskdv98" Date: Sun, 25 Aug 2024 19:42:18 +0200 Subject: Re: Ideas to generate unique search context for id:links MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kepa To: "emacs-orgmode@gnu.org" Message-ID: <172460774596.6.5560656632023294947.415321983@slmails.com> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 415321983 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.167; envelope-from=sl.lmysyibuge2tgmrrhe4dglbageztsmzvgqzf2.75i7o6pk4z2ka@slmails.com; helo=mail-200167.simplelogin.co 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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-Queue-Id: 70C1214DC5 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.02 X-Spam-Score: -10.02 X-TUID: sbWl0Ok9fCx9 --------------LqXrWNKGiWJtADz8sGskdv98 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Ideas to generate unique search context for id:links > From:     Kepa > Subject:     Ideas to generate unique search context for id:links > Date:     Sun, 25 Aug 2024 13:07:01 +0200 > Hi > > I'm exploring the new option implemented in org 9.7: > > "id: links support search options like [[id:my-id::*child heading]]: > Any valid fuzzy location will work as a search option." > > > Do you use any way to generate UNIQUE search contexts? > > > I was thinking about submitting this feature request, but probably it > will have caveats: > > If the search context is in the form "fn:number", update that "number" > too when normalizing footnotes (org-footnote-normalize. > > For example: > > * headline 1 > > :PROPERTIES: > :ID:       2024-08-25T121008356645 > :END: > > blah blah [fn:20] blah > > * headline 2 > > The goal is to automatically create unique search contexts using the > features of the footnotes, like in this link to > [[id:2024-08-25T121008356645::fn:20][blah]] Caveat 1: If the footnote reference has not a footnote definition, after (org-footnote-normalize) a definition proposal appears (even if Org Footnote Define Inline is set to "t"). Caveat 2: If the proposed "id:link" is in a different file than the footnote reference, it could be impractical updating its fn:number with (org-footnote-normalize). Interesting option: setting Org Footnote Auto Label to "Create a random label" could work as it is to generate unique search contexts. Just never, never, ever  (org-footnote-normalize) should be used. --------------LqXrWNKGiWJtADz8sGskdv98 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Ideas to generate unique search context for id:links
From:     Kepa
Subject:     Ideas to generate unique search context for id:links
Date:     Sun, 25 Aug 2024 13:07:01 +0200
Hi

I'm exploring the new option implemented in org 9.7:

"id: links support search options like [[id:my-id::*child heading]]: Any valid fuzzy location will work as a search option."


Do you use any way to generate UNIQUE search contexts?


I was thinking about submitting this feature request, but probably it will have caveats:

If the search context is in the form "fn:number", update that "number" too when normalizing footnotes (org-footnote-normalize.

For example:

* headline 1

:PROPERTIES:
:ID:       2024-08-25T121008356645
:END:

blah blah [fn:20] blah

* headline 2

The goal is to automatically create unique search contexts using the features of the footnotes, like in this link to  [[id:2024-08-25T121008356645::fn:20][blah]]

Caveat 1: If the footnote reference has not a footnote definition, after (org-footnote-normalize) a definition proposal appears (even if Org Footnote Define Inline is set to "t").

Caveat 2: If the proposed "id:link" is in a different file than the footnote reference, it could be impractical updating its fn:number with (org-footnote-normalize).

Interesting option: setting Org Footnote Auto Label to "Create a random label" could work as it is to generate unique search contexts. Just never, never, ever  (org-footnote-normalize) should be used.


--------------LqXrWNKGiWJtADz8sGskdv98--