From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mJNjLygDGWI8PAEAgWs5BA (envelope-from ) for ; Fri, 25 Feb 2022 17:26:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WEMtKCgDGWLvdAAAG6o9tA (envelope-from ) for ; Fri, 25 Feb 2022 17:26:16 +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 403E93C0E3 for ; Fri, 25 Feb 2022 17:26:16 +0100 (CET) Received: from localhost ([::1]:47158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNdQ4-0002uM-UQ for larch@yhetil.org; Fri, 25 Feb 2022 11:26:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNdP9-0002sf-Qs for emacs-orgmode@gnu.org; Fri, 25 Feb 2022 11:25:16 -0500 Received: from [2a00:1450:4864:20::236] (port=38745 helo=mail-lj1-x236.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNdP7-0002BG-EO for emacs-orgmode@gnu.org; Fri, 25 Feb 2022 11:25:14 -0500 Received: by mail-lj1-x236.google.com with SMTP id s25so8112707lji.5 for ; Fri, 25 Feb 2022 08:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4LK53h1U7FDgwxetRIo7rd0a2J5QHFk5xg7GbtbH1yo=; b=bcojETGY8z6pdIResar31ZENBkKGWPpprn9Nva8KWjeOL9EDHlHQIzN2P7kxx9MeVr i8tU5MDC4XKxg9An3Zs5NuLmwBWwurImXjiBIWS2NnQ3Lpi7UHnzczYDH2yyztMpje61 ifZN4sTlm/Y0XRYGRQYfJ10v8fR+2d8ykI14P1tayZrsR2jS176V5VO20J7erJkeEJJV ODLX+4W6xOIxecBHFZd9ornr8FjJUTfDzikI93R8ve2HyjjPiss0hgw+TvEDQwWavHTs JAqU5u1IqXpZFnR7vedZtHwj11KOpyJvA26Yd8KsaeXv4/O+VTVUXEzCfRzxfTPfIC/6 wVgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4LK53h1U7FDgwxetRIo7rd0a2J5QHFk5xg7GbtbH1yo=; b=0VGAm/UO38dyZfK1OQDB9/6Ymgbwjw7sF9pGMBEBATfAfm6N/mcvVtTpzlM4rpOKHf ocsT6UiZBnZVa+WGaa4ayM8wAPsaDwuAp2QHvDQKtL5YJRgAnMGGkCRF7FgRi7PZjD18 C20evM7xZ01+dXG6A/x6htaOvcRk/PxUeSwrkFYsqukf11Nw4SdBB4nEG+JDnnHzdadU NEIJE/FUdyhCt6L27+CfbM3MJxV87PmOR75iYyix12HbiyGIwdbCUQ4zrFGQ262nZXzF OpUuXnI6Al+XCckAsTJykoGr0FLbgz89/l9ZiAVXZjUpbsLLdDLknaiM6+1dcqlU+Ja3 3gOQ== X-Gm-Message-State: AOAM530+D/+n0lGSmwLifTOP7E9ZiCEdzDNsD6YroOjTFOTL6zWH3jCK nQpCqh7nTyJmnQXFv73ez+xfAepdhcM= X-Google-Smtp-Source: ABdhPJzXuXcIhQTqbpNBqUwqxfaLlI9iC+3pshNdYpdBc7PxadzQjjtHp3g5bUoKzxp3nPi5nLptgw== X-Received: by 2002:a2e:995:0:b0:244:e3d0:78d8 with SMTP id 143-20020a2e0995000000b00244e3d078d8mr5726413ljj.172.1645806310933; Fri, 25 Feb 2022 08:25:10 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id u18-20020a2e8552000000b0024638894756sm307027ljj.26.2022.02.25.08.25.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Feb 2022 08:25:10 -0800 (PST) Message-ID: Date: Fri, 25 Feb 2022 23:25:09 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Inserting links stored in `org-store-link-plist` Content-Language: en-US To: =?UTF-8?Q?Alejandro_P=c3=a9rez_Carballo?= References: <5e7b9189-2d12-30fe-ea59-c13575db7fbe@gmail.com> <72B4C8C0-724B-44CC-8435-AF044FB3065F@umass.edu> From: Max Nikulin In-Reply-To: <72B4C8C0-724B-44CC-8435-AF044FB3065F@umass.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::236 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=manikulin@gmail.com; helo=mail-lj1-x236.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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, 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=1645806376; 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=4LK53h1U7FDgwxetRIo7rd0a2J5QHFk5xg7GbtbH1yo=; b=WDZTb4fyLAxjgTOA0hN0+7AjXBtVxSK2ACMKMGIVA1+jq2vdXd8A92iQqHC+U56cmcRNSc r63c9BSHK6AnJbAX5X2BiVYv9f/ppYoNIvJGeB41LAxufDosTPIIme7xunmkP4rhA0tGeM +658UuFEC9TkERoDDbomRr47b+1reJX6J3xJrIYkfXdBPFpurCuEfeUMcVIbWRtNzse2+m PNkGGZiNn7r9kgS5Us7LcRh4W+Lf5axWgiIv05uMPcoN/RJ7BS8QHr/5dXVz7CPw5Pfss1 mxUmD/Bzw4sY+TNWpnrZYZKIzrlj/9lWjnLu/K+HE1Lcw/dbnYJE5T2eMS3HKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645806376; a=rsa-sha256; cv=none; b=uOPp6GEJzVNStvjLEGMu04kIc8I6NXwCWI5/gsYbKQJjqBHKIbXxZGr717IV2ag3ACuNSX Ig1MGiFeZZWxwD451T26N/2IVrW9g5sBy0Ko87tbqIKrPcd7ZfE1yBqDbqF7Nh4eY6J7Tw sneIuj5jN3EozdINqn/O+ZSVpV34ALlCeQ8MeMr5E/Jk0VHY0voDK9Hu51JEJaFd9el+sT Iv5sm603rmUPkwCBj5ZM7QRmFnTfdZGyZZI0ZJ3Ugve3rrfwgMSuw2O5zMHx+0C5So9Efd IrMCZnn6k/5PRtVBlsygc3XygbUyNWb02nBRBfmJ6nIoZo01U4OVE9n2TehZ9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bcojETGY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 5.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bcojETGY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 403E93C0E3 X-Spam-Score: 5.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: vNI4HTJ/eiQy On 25/02/2022 04:11, Alejandro Pérez Carballo wrote: > 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.) I have no idea what interface `org-store-link' should have to be really flexible and convenient. Have you considered file- (or directory-) local variables? info "(emacs) Specifying File Variables" https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html # Local Variables: # org-id-link-to-org-use-id: use-existing # End: at the end of specific files. > I had expected that `org-insert-link' would be able to retrieve > links stored both with `org-store-link' and `org-id-store-link'—it > 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? I can not say that I am happy with implementation of `org-store-link' or that I fully understand ideas behind ol.el. I just found an example of `org-id-store-link' usage: https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-contacts.el#L1171 see definition of "org-contact" link a bit above as well.