From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IIgfFYjnv2QXHAEASxT56A (envelope-from ) for ; Tue, 25 Jul 2023 17:17:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kK9GFYjnv2Qy4AAAauVa8A (envelope-from ) for ; Tue, 25 Jul 2023 17:17:28 +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 166F14C713 for ; Tue, 25 Jul 2023 17:17:28 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=OlU0+Dus; 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=1690298248; 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=2gECJwLUVRGHBkaU3VF5J2Coo7IOtixwR83ClC33ono=; b=S7yyiThHI2mKSG8Tc2801i6Vy2AiaMOiwx3jDA7rUNmslfk2k9RiLON8pYeT9iUfXhnTgA igfaGfbmB152ybQEW1/qvHv50vsMkkAShKpyv5TryLEoe4wqrBUehXqvh83sMw0iiY2Jo7 heA+L/XhOwHrW9tp47zhaHefsFwitJ7YTisIeu+0hneFhzgh+ZI5idklNKtQfb5Ago5DXG DmJTVFZ8pigdoJPpB217QZ4NN1hFcJTMvXeDk6MzWiM4+tM+SBCDmbPOB6epQPLrNKO4LX 2g99NH5RFJIW5XFnmMc5Rp/RKWH3SPdHZX/cZJjHXvVlIzn5x7AZjDyaf9Yw7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690298248; a=rsa-sha256; cv=none; b=cawGEgMWa6OSI1nMO11ZJuoZmx/AIK0ccrEJoeppqS2D0kfipPqCpjIGLoFxtKCZ0SyCur Y+RzizUsyWltSak1GcNCn1yCetjYBzXBBlbYxxw9d8Nn5cbQpMDsv7UCo++/qvthiBo1hh rtkbsP8oUtLweMEXBYgS/nfaP8Yz5xZF2NARQR+ZVle+dta4BYWnUEjVxSqkIP5PYzsROh xHXBv3jCiQIf0g5EMWn/8jygF1HXuzmt6sEL6YYAyMokgVOlNboHySr6NVFVe6rpPhIc/1 Q87q9+pZJ/vhN/Z0Wfkk98wXN56LpeJiJ0b3a0S0GatBfJM6SJv5NFdyetsXKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=OlU0+Dus; 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) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOJm4-00083D-NK; Tue, 25 Jul 2023 11:16:32 -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 1qOJm1-00082A-DS for emacs-orgmode@gnu.org; Tue, 25 Jul 2023 11:16:30 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOJlz-00054I-Sz for emacs-orgmode@gnu.org; Tue, 25 Jul 2023 11:16:29 -0400 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9338e4695so83854131fa.2 for ; Tue, 25 Jul 2023 08:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690298185; x=1690902985; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc:to:from :references:content-language:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=2gECJwLUVRGHBkaU3VF5J2Coo7IOtixwR83ClC33ono=; b=OlU0+DusKIzy1pytf6zF2eIssmTFzbohau/MVDC2ltwTlFkzksx6BGNTIAPMfiUtAK p0DPcrAJDqZpjsMoJkdN2o8W13bCCDBfI/1kQV2B9L/CL8kRESUUysU8WidZlcOJ7xSP Xm0es8Kg/L0LT/vAMgmjBPnFEccWmd28g8nc3WV/gh48lGFo5mSk/jAF5SWqdSp5m5dg lS+yMWPeQzc+RYiOVXnYK76lATLZ86xzORyIyFGkE6rHP9shZMYl9LfHZu9+BVzpqP3Y jVr5WTHVgmc9nm9HrhZv+OuB0N4asAjGYQ31QDu4MFKQqUo5tz6MU/B70+xtv/AP3OTp 5gPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690298185; x=1690902985; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc:to:from :references: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=2gECJwLUVRGHBkaU3VF5J2Coo7IOtixwR83ClC33ono=; b=GGODCKOAjYGw0YosQ+AFZE8bfCnMrOMdgGjccK69rl3hjo7HFWfBn3qCiFBiiTeYO4 jk0+/Pm7ZwVdRHWjUZltMbi5OgYXAQhMsDLoy/BH46nBe4n0MQf1MD28lOPW2DX/d60W jjKllSPIHYhIVgcindpA6NU2JfTqMXhim4GetTTdxKXejPr20UK3DfYPlP2zEl1sdw+G h7Ny+Txjh9xMpZu9I5/9nzaOyln/kd7GH8F+RCQj6/4dLbNMfMvJen+IUqjLI07uz9tf uWdz4ILbzPFyc1Atr3mNugD4OsnGmvzLQEyNYFWpiiuhCW4SG66Aj8b+zzz8BNJJQnaM WWJQ== X-Gm-Message-State: ABy/qLbC3uujeEiZEjcAqcHP5Y+9TUu5qn83SQU/rXCbZaBbnxGH7WXi 2BbEr/JjxPOsFGfPdxk0e69uD21GGH0= X-Google-Smtp-Source: APBJJlE0Pc6rAMGhuIUOLJtYe7lAjlf+ye6nQgc0pbTxxFL1FFXy9P8aXotfwps+ygxQP9rxszaUKA== X-Received: by 2002:a2e:81d2:0:b0:2b9:afd1:b775 with SMTP id s18-20020a2e81d2000000b002b9afd1b775mr169419ljg.50.1690298184707; Tue, 25 Jul 2023 08:16:24 -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 n25-20020a2e86d9000000b002b69f44646bsm3587889ljj.17.2023.07.25.08.16.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jul 2023 08:16:24 -0700 (PDT) Message-ID: <142ff7c1-7a22-c5fa-1b8d-79ab8809cc38@gmail.com> Date: Tue, 25 Jul 2023 22:16:22 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] org-id: allow using parent's existing id in links to headlines Content-Language: en-US, ru-RU References: <118435e8-0b20-46fd-af6a-88de8e19fac6@app.fastmail.com> <87edkwsafe.fsf@localhost> From: Max Nikulin To: emacs-orgmode@gnu.org Cc: Rick Lupton Mail-Followup-To: emacs-orgmode@gnu.org, Rick Lupton In-Reply-To: <87edkwsafe.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=manikulin@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.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, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-Spam-Score: -4.44 X-Spam-Score: -4.44 X-Migadu-Queue-Id: 166F14C713 X-Migadu-Scanner: mx1.migadu.com X-TUID: T873NInOEZzr On 25/07/2023 14:43, Ihor Radchenko wrote: > "Rick Lupton" writes: > >> Now, with `org-id-link-to-org-use-id' set to `inherit`, "H2" is not >> modified, and the resulting link is `[[id:abc::*H2][H2]]`, which will >> still take you to the same place as long as the sub-heading is unique >> within the parent heading with an ID. > What about inherited CUSTOM_ID? I am not excited by the idea of extending id links for heading hierarchy. From my point of view it is more natural to add the ID property to the heading that should be link target. Sometimes I do not mind to disambiguate heading search link by specifying title of its ancestor. I usually add the CUSTOM_ID property or rename heading to be unique. I am afraid that allowing arbitrary link types to specify path to an element is overkill. It is not XPath and not CSS selectors.