From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GPvMC8H0F2I5GgAAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 22:12:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yGFaCMH0F2JshQEAauVa8A (envelope-from ) for ; Thu, 24 Feb 2022 22:12:33 +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 516E334721 for ; Thu, 24 Feb 2022 22:12:32 +0100 (CET) Received: from localhost ([::1]:52302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNLPb-00022B-HY for larch@yhetil.org; Thu, 24 Feb 2022 16:12:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNLP5-0001zE-Nv for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 16:11:59 -0500 Received: from [2607:f8b0:4864:20::1033] (port=54928 helo=mail-pj1-x1033.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNLP3-00032A-Dg for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 16:11:59 -0500 Received: by mail-pj1-x1033.google.com with SMTP id b8so3049267pjb.4 for ; Thu, 24 Feb 2022 13:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umass.edu; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=X586k0azf2rHmxKlm8qdKiTPAFjLeH3Br46cTyEXFqs=; b=dyyMgNH5kz+Y7WVr6Orp4SRd42wmfoaxEYkUn00wyTA+b/yl66gS+cSpaqw9rjDoql NWFGcMhLHHvHHzUEKNk8/Y4vAeFAqjn3D9XNnAHCeuxGpCjaNtGNMdDC+8dQ7byjaOWa hGDllT1IJohR18h5XLu0guARPVfUu0YDofcCg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=X586k0azf2rHmxKlm8qdKiTPAFjLeH3Br46cTyEXFqs=; b=xqOX5ewtohzSSV8+DbLjRVf2VNf/cr/HVWbuPvRq7l0N7rFh6nf3xq9hzt8Go172n7 sM97eMq/XvoO8iWqNg0QZIXeHRHsxuV3qWntkppnj1Xd1RwfZ/ebldmVYSOqj6vCWg9g thYygNKeRzJNuQ1j9vNdwRyXNZOdtJzhlGbhC3AVG90xnEhBaeu3nW1vah3ZzRwmM4cg AwBpOEFmrfSvWPrpi14Z3Akps+DSuQA+jPrcLWfsjvAEc2BJodnhv99ZlZDDVBb98zSR n9kFP7tzpabZWUn2+RrpswGe5NJW/sRSiPnz2MGK3sJ7xIsi1fACW4JNH9+LNWp8/xrM cBww== X-Gm-Message-State: AOAM530JLGD/7gfls5gNuLsUOjlos7sJAbfARS798VDVt6SIxJD/VBxv UfRwk+1hM9k4uGrbxYrUjMqlhQ== X-Google-Smtp-Source: ABdhPJxObnIvqgKb3ejTcD5l9eX5r8KLhL7XmdmoLnmMwmyToCG7ecS/+XUw6aS63WFzXvEtsBAwNQ== X-Received: by 2002:a17:902:8e8a:b0:14f:fa85:2af4 with SMTP id bg10-20020a1709028e8a00b0014ffa852af4mr4691358plb.120.1645737114768; Thu, 24 Feb 2022 13:11:54 -0800 (PST) Received: from smtpclient.apple (casbs-pc-carballo.stanford.edu. [171.66.240.201]) by smtp.gmail.com with ESMTPSA id v14-20020a056a00148e00b004e1cee6f6b4sm448705pfu.47.2022.02.24.13.11.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Feb 2022 13:11:54 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: Inserting links stored in `org-store-link-plist` From: =?utf-8?Q?Alejandro_P=C3=A9rez_Carballo?= In-Reply-To: <5e7b9189-2d12-30fe-ea59-c13575db7fbe@gmail.com> Date: Thu, 24 Feb 2022 13:11:52 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <72B4C8C0-724B-44CC-8435-AF044FB3065F@umass.edu> References: <5e7b9189-2d12-30fe-ea59-c13575db7fbe@gmail.com> To: Max Nikulin X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1033 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=apc@umass.edu; helo=mail-pj1-x1033.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645737152; 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=X586k0azf2rHmxKlm8qdKiTPAFjLeH3Br46cTyEXFqs=; b=Y9kXn8CHQUDzdVjuDpJMUGhTek/5JISRD5mCxBQyuX6AKxXQ6L3jX1PP6okok9SLPlNKaL 75OwBs86R4dmzIy1CwDQffQapaIUMmqkOJ7F3vOZDy16riFBEg9vdvwHZLWkazvRes1vpN vH94okoTms2j8JJW7cUgDlYsgUliQY4QjMcnRNd46rrArabckmmvlY8nUqZJnnI/hJDgeH kqqDPOluw8n7Y0QwKw4jsmcIpsaTudcyEEklZ/SaBzBho9GUd6LtsJtF/NRTpdnSysq8MD u7F487LanEjMovp2ABaaHDQbGYj4IOoBdtTzoV/74geDwkbLj0oFMuD1Yyxkpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645737152; a=rsa-sha256; cv=none; b=qh4ew4D3OJ7esRijmXxQOQcMiKfdUx8rkpDR9A8wLb5riR9YX0pfprwOX+JpgOeWISxquk Foqp1Ek7m3vjZ5OILs853BisyonbsvbuljXefT2rLDaoQ2QYZcvpRU/igacRLbgJSL05VT 6TprUPXrWJ1z0Up9Mq8sqsf9T98gcNlC6A8mvFH4QTdFxK3iEt/+JmQFD+5EvNCLlyhtID bNh7iH/R97UIVB6Pop4vVyPdDmRhXN3IZELIS4uuMCMLTb57yvAEbOaCJy+BekrGTxoS0f O/lr0wQhaXXwMov/H8DV1BlaC5pjnP5km9tzgkUECrDhxkkCZJv+Cz8pROg3MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=dyyMgNH5; 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" X-Migadu-Spam-Score: -8.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=dyyMgNH5; 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" X-Migadu-Queue-Id: 516E334721 X-Spam-Score: -8.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: d3y44ckEH9a3 Thanks for your reply. I can store the ID calling `org-store-link' if = `org-id-link-to-org-use-id' is set to a non-nil value. But I wanted to = be able to have `org-id-link-to-org-use-id' set to nil and also have a = function to store an ID link. (I make use of ID only in certain files = and try to avoid them otherwise, preferring the default method of using = a link to the file with a search string pointing to the current line in = most cases.) =20 I had expected that `org-insert-link' would be able to retrieve links = stored both with `org-store-link' and `org-id-store-link'=E2=80=94it = seemed like a natural assumption, perhaps because I do not know of other = reasons for having an interactive function that stores links aside from = being able to insert them later? But if the point of = `org-id-store-link' is not to supply values for `org-insert-link', = please ignore this. For now, I've just defined a simple wrapper that temporarily sets the = value of `org-id-link-to-org-use-id' to `use-existing' and calls = `org-store-link', and that works fine. Thanks again,=20 Alejandro > On Feb 23, 2022, at 7:50 AM, Max Nikulin wrote: >=20 > On 18/02/2022 06:26, Alejandro P=C3=A9rez Carballo wrote: >> After storing a link to an ID using `org-id-store-link` I would've >> expected the stored link to be made available when calling >> `org-insert-link`, > I would expect that to store ID link it should be enough to call = `org-store-link' having proper configuration. This function calls = `org-id-store-link`, see = https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ol.el#n1634= >=20 > Unfortunately you did not describe your real problem (or your goal). I = am aware of a problem with storing CUSTOM_ID links but it is unlikely = related to your one: = https://list.orgmode.org/e2c807a7-1924-6f08-9e63-4f70aee9d3b5@gmail.com