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 ms9.migadu.com with LMTPS id eKv6E1+9wWSJmQAASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 02:42:07 +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 4EwAFF+9wWS9IgAAauVa8A (envelope-from ) for ; Thu, 27 Jul 2023 02:42:07 +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 0D1D85374C for ; Thu, 27 Jul 2023 02:42:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rp373bjM; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690418527; 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=cJNiySa+M8Ewg7P6DOOW+EMQ5uIvA8mngKxu5UVFLNs=; b=jJQ7lvFtzKLJXVlzHNiQ6aMCP/xw32slbECMJ4TF+iG1XWI19Cv1BXCuqj8V0jByrz6O3g FwCcTqdbomFSQB1w7oaRLV9CQ1DTeRVLYlZVAEO45vYOjdWd/RRgoggMc7MK+nMjnGnYpf khT/1L1S2USaXLX3q6BJA9YFMXbmjeqfmlIEAkzZSvLm5HSIx7C88DFAutlI9oV7iDrE9R X6lc5NzF/GR+/Mrg2WjEDuUCF7fffQEbzAZjMVFh7tnGGdWIj4npp1E5FXlLb5wOUbpb+T 1iKOeHEeKDx79LOdIKoCA8EnGY1G4fvT65fbZDiixBDxEqbzLdQ36N+6MI4SIw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690418527; a=rsa-sha256; cv=none; b=T+Rp5oVtYmV2m7jISzPabQtXgLBD5zE2ZQQy97GhYVOSqxPigbeMIsrggrO7htPQVkfOtM 5Tcj15YJC367vwmO7mGovDIGDKul4TKZXFQmAAXPdFb2L6gOplm2NhSrNs64P9a1WQRe00 B0MpE6NU/Zx0o3jgMvLq5QOBwYeL+IrhfbXCBdzKmjqvI0Nsh4NJn2TfDw5XiJCr3UzyK2 QW7je8bRLX87GIKSI7UY7oztxqOYWVgtnDU1vB+B+c/YUntTm3IoYnq1/uDi2eZ8kgeZ1I 2tboVL53rJcfZkg2BZUzvGI/NKJnTp/CMjjZdQCOdEjdfQ8/By0VK/aq84STkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rp373bjM; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOogT-0003mI-L8; Wed, 26 Jul 2023 20:16:49 -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 1qOogR-0003lv-Ap for emacs-orgmode@gnu.org; Wed, 26 Jul 2023 20:16:47 -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 1qOogP-00028U-EG for emacs-orgmode@gnu.org; Wed, 26 Jul 2023 20:16:47 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f13c41c957so102762e87.1 for ; Wed, 26 Jul 2023 17:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690417003; x=1691021803; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cJNiySa+M8Ewg7P6DOOW+EMQ5uIvA8mngKxu5UVFLNs=; b=rp373bjMbmR8hZqzVvhGjTYZzNsWLHcR4uJcqyYLp5F3jSWxBA3UxMZQwEUXCTeToF Hs9v6AFxNaxSaNkxvFA/IVeAvgSA15q5t8rqBbVcO8mP72YbaKWqFpbOzWXf0ya6Pop3 K7dWVEt3nHz9v7kg+EXn+JWKYiKHIzDUlFo3jfYKouqamhn3S0grIB8KuBVKinpvZXqD jsg8bU9etfJ32MW6w5+2UEdVASZYQLECv4+2v/gdJMExxOm7Rgrzq5BSdVBD0q+zcWqJ M8FG+gAQ+RbY2/FVZeCB9XttRL8poDcgEVqvqPHA4MFXHcELo6op7Haj+3yk4G44R6oi m4hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690417003; x=1691021803; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cJNiySa+M8Ewg7P6DOOW+EMQ5uIvA8mngKxu5UVFLNs=; b=OSxTS9CZWBPQxigq10Vnvg5iPEBueVFiVFeLb5gtAPhWPYCLpjOrM4EamtptwSTUiQ hnl9v2TEHCVjw/wVzu/GvkI388j667nfb5wwwGH9M1Do5RbZDRf3V9LVyjQb3BoF+S+b QGMY1fCaL3uHMI7zB05ZGl08OeE9YWpmZiGWstinPDAX8vLEAbdJtGGuKhvCiupPwsUt n1uqCL1Cv0vIvANBI1MkU0yYJN0yPGeTYuMtpYKZOu5PKri6EOgrN8doT1ZYSe0J+Ggj Cy3t/r9Ksgfsv7MHvPKCX9AwcFdhW4tGMP+nuih1OroThJ9Uhfzzp0rgHCihvwlP0dpJ mHBw== X-Gm-Message-State: ABy/qLaKAjsmKSSaQPiPxhETTo26i9Zhr87n1Rs2a2ZtFi7aQbMVUrQO FVxmtivjGyrOa5LYpCr5J8JUWn0K2h8g1KXhLdU= X-Google-Smtp-Source: APBJJlFxOYkCFTWv5fJbB7Rsc7qvZ7oWvtRqU10SvlVv/sQBS062ycPS2ET8kVfWz6qTEQ3Ri+fF19dmNl2cL++x7JU= X-Received: by 2002:ac2:5dc4:0:b0:4fb:e790:2d56 with SMTP id x4-20020ac25dc4000000b004fbe7902d56mr2273124lfq.6.1690417002972; Wed, 26 Jul 2023 17:16:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:11e2:b0:268:94be:fdc7 with HTTP; Wed, 26 Jul 2023 17:16:42 -0700 (PDT) In-Reply-To: <87h6prm6tk.fsf@localhost> References: <118435e8-0b20-46fd-af6a-88de8e19fac6@app.fastmail.com> <87edkwsafe.fsf@localhost> <142ff7c1-7a22-c5fa-1b8d-79ab8809cc38@gmail.com> <87h6prm6tk.fsf@localhost> From: Samuel Wales Date: Wed, 26 Jul 2023 17:16:42 -0700 Message-ID: Subject: Re: [PATCH] org-id: allow using parent's existing id in links to headlines To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org, Rick Lupton Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=samologist@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, 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: -5.19 X-Spam-Score: -5.19 X-Migadu-Queue-Id: 0D1D85374C X-TUID: RmT6k541k0in i can see the appeal given the granularity of id [headings, files]. yu want to point to smaller things. but what if those smaller things could have ids without drawers? id markers. then changes in surrounding text would not break anything. On 7/26/23, Ihor Radchenko wrote: > 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 > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com