From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oHTOCDPVwGRhuAAASxT56A (envelope-from ) for ; Wed, 26 Jul 2023 10:11:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KKMsAzPVwGRlPAEA9RJhRA (envelope-from ) for ; Wed, 26 Jul 2023 10:11:31 +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 CC5DC5620C for ; Wed, 26 Jul 2023 10:11:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HPggz6JY; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690359090; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pG5+UO8rR6wB963f6ot9LW5GM7kb8FXMbkHI+JnGxYA=; b=Gur2EFoSh8htb86s/BU0zJtRYMGU8p1I0EyLEkB4v1Gyc9MdVak+cWOhmAmDp63jnwHrWH MsNV4OnqZIxqTKJ1phygv3VrgxGsla34hjqHtLR4WiKFV+k4oSSia/6obsZM1Rw0KBo/se P9lpM5uIgFlrgFCa7jc4WgGmV7MX0BhFVnhNYqPycbDA8EOD4uKSmfYLTBG93Lo83j+aQS cHSwk67ohYxZ04oIFK18+0Wu8xuAj/INl1fXpKICMCrrIfULgu6uw0dRfqTi9TIweztoH+ iSA1ffImgchGoH3HNcYGm+P4rr4x6/OQJHpvkO1egDb+L7ZMtImiAHLJhqvHQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690359090; a=rsa-sha256; cv=none; b=lVIDe0Va2seBTBPYmQR227n0WK5rtAV6Cpzj9ZAyKRbsTaGAJhFaNWfpW8qWbt4upbIxWK zZYWcSotgN8J8f4ddfV0aG2dBg78edvxNBuVGaWDig8d7x1kHOBqU1HeWWbF/xNvDu1EPG K+hC2mZHWMgovLCb3eRYQPpCfF1Zz2SBhjG1Yskxeqf24QgF7RABllX1gUEyxBoGqfTj0v Fg4is+us5JNbfJT15L8aYVQSGqBQJCHPDpycW6rQSYUojlbiugUlI+bo/7anIXQMUhD9GT fUJCkxxdbJnnpHB4AciHCbQL5e0pXkmvcMcziMyOIbrZu4my/daphDWenAf+nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HPggz6JY; 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=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOZbF-0007vo-Oi; Wed, 26 Jul 2023 04:10:25 -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 1qOZbC-0007vR-Je for emacs-orgmode@gnu.org; Wed, 26 Jul 2023 04:10:22 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOZbA-0006vU-Gc for emacs-orgmode@gnu.org; Wed, 26 Jul 2023 04:10:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 57867240101 for ; Wed, 26 Jul 2023 10:10:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690359018; bh=9PXRzJdP1KWso6BVdOFrgSesdLLHdr/eMJOfSjkqkt4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=HPggz6JY8MUyXHijJL+8F2D6chJCy4VMOfVrrAVxs5BlWARGExh/9QeqG4G+1j4jF FniDYGx0zBXNTRgzl7Zn5FnkW0E05GrgNdyOtjjHkEHn4IPpB9rFP6F0Y200g9Uc3z NDuT4uwYocqjx1uFatmIIKK3fCbDq3qyUqAXstKz0VJ4GPP+pv0LxRwr8wGDshZMcm mdDpB6ilBm1mpWgv9iqPZn/udJnTiCIrxB+JMfRIC1SPJN+p48iDrM1ZblqwKNp84i x+iwMgTF8YOFEbTIJZInfcvLw1jnXlnp/UMlqhtp9cj3apb7y+yWRTKHI9euUNZP1Z i7kJAJKlIOS4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R9mm93yFWz6ty5; Wed, 26 Jul 2023 10:10:17 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org, Rick Lupton Subject: Re: [PATCH] org-id: allow using parent's existing id in links to headlines In-Reply-To: <142ff7c1-7a22-c5fa-1b8d-79ab8809cc38@gmail.com> References: <118435e8-0b20-46fd-af6a-88de8e19fac6@app.fastmail.com> <87edkwsafe.fsf@localhost> <142ff7c1-7a22-c5fa-1b8d-79ab8809cc38@gmail.com> Date: Wed, 26 Jul 2023 08:10:31 +0000 Message-ID: <87h6prm6tk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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: -6.37 X-Spam-Score: -6.37 X-Migadu-Queue-Id: CC5DC5620C X-TUID: Rkal9cZIZJyE Max Nikulin writes: > 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. I am looking at it from an opposite direction: we already have file: links with ::search term, but file is not a very reliable link anchor. File ID will persist even when the file is moved. So, instead of having something like , we should better also provide with ID defined in the top-level property drawer. ID being some sub-heading is then a natural extension of the same idea. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at