From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YPA+NMNUTWV0QgAAG6o9tA:P1 (envelope-from ) for ; Thu, 09 Nov 2023 22:53:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YPA+NMNUTWV0QgAAG6o9tA (envelope-from ) for ; Thu, 09 Nov 2023 22:53:07 +0100 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 72B9421FEC for ; Thu, 9 Nov 2023 22:53:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ricklupton.name header.s=fm2 header.b=UztE+TuR; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=aJpMYtr8; dmarc=none; 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-Seal: i=1; s=key1; d=yhetil.org; t=1699566787; a=rsa-sha256; cv=none; b=H5ev00LkENwP4NvO/96fIe2nT+IGvkGyGzOfQ+h9BKDTcVN3tI7/MQIX9Q8fa+X66w0d3i f1Ot/p/sbS+6LgSpxzqg5ru+Y1jQItdZg4KmxBq4hAbcc9M/Tt2apiYyhVIy13cPMSvEq9 Mne5MRZd9+EiU9W6l3z+QwQiKveoxcWTD7gL+bHhJa5zdcgpEGz1HNj61N6d7FZSuLalvE 4qSQXosok+y305jCrCIlelrGvzeLOsP5kgVYNzyYSp+JPES6XS7LUDE+JWTkMp2anVEJLc LpF/AleWNbrVKj9y/ux4ZP1HYIZErVupLromqr6nZfbkfLqL3+C+JuWdNcUxzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ricklupton.name header.s=fm2 header.b=UztE+TuR; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=aJpMYtr8; dmarc=none; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699566787; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VGJ4FcEaF/mIqyQ1mbVm2LhhtRojhMLUgeOnS8kM2u8=; b=JsJId5XRRcIG1w87hZLu0wlXk0jxZyizECAWEfqyO32AdD4SajC1OHXRW+NoTF3/Mg5VIm NT4qJKUwA745jCo7WoqKruFhE6o4qoT7cn+o0o60gSh1TIW4c+fU2vCHRZsXBEr+I/3W3C eAw44kkMw/ITX65poDrzHpMf6wOtSaN9EMENG8Iggvt8KP9mBpSu4t4USE40MeGNPhH6SE W4b2QTpHMzgt+NTReDIW3Kah2FGZzqdI85qSc89wHvnNte7fg37JhHZUiQDJiUJUvZB9AJ RgKvFl38SfXAFc7ry6APqUPbhhsfPW47GWujTF2YyK7x0wIIuubBdIRpxR2WXg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1C5d-0002Tv-2L; Thu, 09 Nov 2023 15:57:25 -0500 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 1r1C5b-0002TS-6t for emacs-orgmode@gnu.org; Thu, 09 Nov 2023 15:57:23 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1C5Z-0000J7-Ig for emacs-orgmode@gnu.org; Thu, 09 Nov 2023 15:57:22 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id F1F5B5C00F3 for ; Thu, 9 Nov 2023 15:57:17 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute2.internal (MEProxy); Thu, 09 Nov 2023 15:57:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ricklupton.name; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1699563437; x=1699649837; bh=VG J4FcEaF/mIqyQ1mbVm2LhhtRojhMLUgeOnS8kM2u8=; b=UztE+TuRmtVW4CCwp+ gS7Zxa2g/qIWYiEeFkvNQMdCGmXHWivwqvCB2dQgdKZxxHufJO7CQWtuoNDzlGEF t4Hx1j1AM1bsZ01ffwI2M9LaB1X9M8CDUTcelGXuOvCdP82jamrPurbUjicLOZvZ 1+cCoUGOZ0vI8vI0KcZ0Ec6ZZMI6Nrr9La/JU+/7FQvaHe0c1m0xUpp3oAO7iqHW gWo7M+/FTpEMG2FQQEPcKuifKjaGyTTsSE1DTc+MMfkSsRjxWBQQV9nrG3RVGq/G CfosN6rmJ6HjoHxZnmeigO8BZxZzJc6nIiAryX4d5+IqsdPspJFT6WmtMxeRi5sk oCbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1699563437; x=1699649837; bh=VGJ4FcEaF/mIq yQ1mbVm2LhhtRojhMLUgeOnS8kM2u8=; b=aJpMYtr8w1fHI5WiX+UQ9hviiLN5s O7b58KZMSvtnpnUPvA2+qDrX+Z75QctQ6bn58eMG04pPxgqsczBj/C1TLU3SQt0Z UC78XjIBKXCzU2oOOsRTayrGrm7coNX2cxfqV5oCP0XzdGjS40QUYvogV8nxR+qC Auan5Ykj0LY1Bn8WjjK4tTcWx3yC+9axkWp9eo2CSdAXNAxQ5StJ0+b44x9OGjrv knKlPsSigVOQe0QOQbMucYlD4BHqLTn2ldBU2bXb59FaArd/+9nFnQ6cpuS5tv9j +K04ZB8XiUSl2rqtpS6MvYfFFvEn2RGVDXmSxSnnVKxTJVHMJBqGgNQSw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth dtredtreertdenucfhrhhomhepfdftihgtkhcunfhuphhtohhnfdcuoehmrghilhesrhhi tghklhhuphhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepjeeggeduvdehudegie duvdfglefgheegvedukefgffegfedvudetfefgvddutedtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrihhlsehrihgtkhhluhhpthhonh drnhgrmhgv X-ME-Proxy: Feedback-ID: i0143436f:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A67D71700090; Thu, 9 Nov 2023 15:57:17 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1108-g3a29173c6d-fm-20231031.005-g3a29173c MIME-Version: 1.0 Message-Id: In-Reply-To: <87edkwsafe.fsf@localhost> References: <118435e8-0b20-46fd-af6a-88de8e19fac6@app.fastmail.com> <87edkwsafe.fsf@localhost> Date: Thu, 09 Nov 2023 20:56:44 +0000 From: "Rick Lupton" To: "Y. E." Subject: Re: [PATCH] org-id: allow using parent's existing id in links to headlines Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=mail@ricklupton.name; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=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: 72B9421FEC X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.94 X-Spam-Score: -3.94 X-TUID: vgPdufLL9A3Z On Tue, 25 Jul 2023, at 8:43 AM, Ihor Radchenko wrote: > Ideally, we should have all the necessary logic to store the link within > `org-id-store-link' and then use `org-link-set-parameters' to configure > id links. I agree this would be neater, but looking at how this would work, I have a question: Behaviour in `org-store-link` currently depends on the `interactive?` argument, e.g. in this logic (and interactive? (or (eq org-id-link-to-org-use-id 'create-if-interactive) (and (eq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id) (not custom-id)))) To move this logic to `org-id-store-link`, is there a way that `org-id-store-link` can tell whether `org-store-link` was called (a) interactively, or (b) with the `interactive?` argument true? Thanks Rick