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 ms8.migadu.com with LMTPS id WLOkGHA3OmW6DwEAauVa8A:P1 (envelope-from ) for ; Thu, 26 Oct 2023 11:54:56 +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 WLOkGHA3OmW6DwEAauVa8A (envelope-from ) for ; Thu, 26 Oct 2023 11:54:56 +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 18AA73498F for ; Thu, 26 Oct 2023 11:54:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=bADDWrJm; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698314096; 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=72Wt/ctwXuNkOeaAMUTvQGSdkjYE7brYMsV6uXnVbFs=; b=Tbfa/NeApcypZ/FyXgE8MGOjjJ5SBvtRmC4pPB0mKoOf9o+9ynK2Hp/v3cgZFJoO1Lr5NY ysOJqaTbrUSd4wxNJ9K/Mmr/zdC5TQk6CiN1OZHd7zpjAoCNTfFPM7G2bUzTMtmuhgl+va LXK5TDn53Bb/ilzHlQmhnodjj2ecz06Uiyw4jwp3puC8LA4ywRTFv2nrMFr6engXTCDv/7 QCmLGF/npIcUbXXNaN03oWhni2xVcu39AkHWMBFWiEjqX5dGBmXZSaLZ27p6IJrT31hNZb drzQdE0WFCFcMTc8LM3wQVKNnQscjRWHUvgJ1YjSwAP7KrQAZE88I9vXT0y0tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=bADDWrJm; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698314096; a=rsa-sha256; cv=none; b=ZUiIG7jr5Gwv2/vXDBVyXwtaK4op1yy5hOq+t+ou3XDtpJdSE9lddPGmvYAlnpltlYshZp LFrPo6gOdllq14elY+UThgBZZMLnixlxhkcEgUwq1pYLYggyPAMnTJn75VPX+IuNBii8jQ KpqhzPUaTjPfZ1/xq/NWjFC4etJFHcLcee3nNQyytzTEMA6LNOECu5tH/Kw/MDZnOAcOLB 0pymPn76NkunNOVPWtbWCEXZrVS35hpXkHF0Uc25ZVscvmDVmxikuK+cBvf7eRAKTlFVLx 9LjgUOJkR+K4kfU8i/4byN9vp0AYDeYITrOQOyW5Vw0RQ5V7Ji6H7jJ2eLqS8Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvwXr-0002Eh-18; Thu, 26 Oct 2023 05:20:51 -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 1qvwXo-0002ED-8V for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 05:20:48 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvwXm-0006Lz-32 for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 05:20:47 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-507cd62472dso2097734e87.0 for ; Thu, 26 Oct 2023 02:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698312043; x=1698916843; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=72Wt/ctwXuNkOeaAMUTvQGSdkjYE7brYMsV6uXnVbFs=; b=bADDWrJm/Xvp1p3C6TJFsKRueNtebltyLoBnR+Ak8PcvQnpeDBp0p+P5lhfN7ezD7Q fSN0gHLilYV9l5ugCJPYSPc3AOug4etRHbFikt3qF/YrzwpAF+KT02JRF86eO0br5tpx PVNXY4cEfxo5rVx6qhwirDhTcGheg10A4H9FHsG/XwDhiaSVVjTxaZSxYARMv5lrZOAX +HsPo6FpB4fvXRRgSw4gbP0QBATFi+xbh6ryVeuvMoYiIu6guWRSGCjr8V/9MzC1WCXo 5je+aSkb7K5zZE89GjUYY4OHXsDO8VHRxb+P9BaijebInxyByjSwUxeTdX5Fc4UK2RZV BH0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698312043; x=1698916843; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=72Wt/ctwXuNkOeaAMUTvQGSdkjYE7brYMsV6uXnVbFs=; b=N7w+WM0Kc8e0JgZ9xEIjU5F8rZe97WefwRiHngre5uJkAFDHg03zqrCs8Pv3kf+xOT +NLz/pos1OssUw8PzoBMtLuG1UH9QFGOvnsOH39CmKhSFL1tNA+MUPOAbaHs5axirVMn AVgrVwpW0TSILn6nkzcVFMfrhI7ZOG0JiEalxf0NcgG1Za4Cx5ncRtQZgvgGZLeE5If/ Z4HHgOdxK4gh8Wb5eOlzyYWDnLY9mcrUDlAJ4NawqwOPAg0AJmGuYBwzh0fmltXjYIyS qgtTSgiACNMNdGUhttMfLUIA7J7RD56Z18ofVetKFcf+SsKSnjWdMWU/lfgEN/RpwMvt inJQ== X-Gm-Message-State: AOJu0Yy3N6XPJM7MIFf6R+r0UO3mrToTY/jKMLE3oNPk+7wyJ7VWzaPm IRikcTVXtCm68vRzFRDZ8Smh80GrqnM= X-Google-Smtp-Source: AGHT+IFvPfp+7XaCPfUFwg7WSCznJOOkkKihahgRUOKUtXQVjS09WwVgZNyhvm34VY3+Oba3EYwSww== X-Received: by 2002:a19:a409:0:b0:500:943f:11c9 with SMTP id q9-20020a19a409000000b00500943f11c9mr527689lfc.3.1698312042820; Thu, 26 Oct 2023 02:20:42 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id c7-20020a196547000000b005056e9b734esm2949333lfj.151.2023.10.26.02.20.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Oct 2023 02:20:42 -0700 (PDT) Message-ID: <8a536d19-0686-486e-8d8a-33534cb79aee@gmail.com> Date: Thu, 26 Oct 2023 16:20:40 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Feature request: IDs for everything Content-Language: en-US, ru-RU To: Tor Erlend Fjelde Cc: emacs-orgmode@gnu.org References: <877cnhyuom.fsf@tor-Prestige-15-A10SC.mail-host-address-is-not-set> <87o7gst9b4.fsf@localhost> From: Max Nikulin Mail-Followup-To: Tor Erlend Fjelde , emacs-orgmode@gnu.org In-Reply-To: <87o7gst9b4.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: 5.91 X-Spam-Score: 5.91 X-Migadu-Queue-Id: 18AA73498F X-TUID: s1x8j16r0k6R On 21/10/2023 20:05, Ihor Radchenko wrote: > Tor Erlend Fjelde writes: > >> I was wondering if there's a reason why we couldn't have IDs a la >> org-id.el for everything? It seem to me that it would be useful to use >> something like `#+ID` in place of `#+NAME` for tables, blocks, etc. as >> well as headlines. I think, another complication is referring source code blocks as variable values in header arguments and as noweb fragments. It would be great to be possible to specify "id:UUID" instead of fuzzy names. Perhaps it may be solved by explicit calls to new functions. If possible, I would avoid proliferation of keyword in favor of "#+name: id:UUID" And there are references to particular lines inside code blocks... > Apart from #+NAME, we also have radio <<>> that can be used a > link anchors (#+NAME or other affiliated keywords are not allowed, for > example, in items). I think, you mean <>, not <<>> targets that activates plain text words. It seems, the latter cannot be currently exported as explicit links [[radio][Radio]]. I am unsure what conflicts may appear during attempt to allow optional explicit types, e.g. <>. > We also discussed linking to #+name and <<>> globally, without > specifying the file path. From my point of view, it should be either global id:UUID links or file:doc.org::name local links. > If we simply allow id: links to point to non-headings, it will be a > major breaking change that may affect third-party packages. So, we > need to design the extended ids carefully to avoid breakage. A defcusom user options whether id:UUID links for non-heading elements are allowed. It is just an opinion/idea and nothing more. Are ids for whole files (placed before first headings) are problematic for 3rd party packages? > [[id:unique-file-id:object-id-inside-the-file]] Perhaps than it should be id:FILE-UUID::SEARCH with usual search options like #CUSTOM_ID, *Heading, etc., with the new variant id:OBJECT-UUID. However I am unsure if search should be limited to a subtree if HEADING-UUID is specified instead of FILE-UUID.