From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4EM5KsQaGWKLuwAAgWs5BA (envelope-from ) for ; Fri, 25 Feb 2022 19:07:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gEb9IsQaGWK2KQEAG6o9tA (envelope-from ) for ; Fri, 25 Feb 2022 19:07:00 +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 BFED82A636 for ; Fri, 25 Feb 2022 19:06:59 +0100 (CET) Received: from localhost ([::1]:44616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNeza-0005V6-9S for larch@yhetil.org; Fri, 25 Feb 2022 13:06:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNeHU-00059q-2j for emacs-orgmode@gnu.org; Fri, 25 Feb 2022 12:21:24 -0500 Received: from [2607:f8b0:4864:20::52d] (port=38578 helo=mail-pg1-x52d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNeHR-0002X3-5T for emacs-orgmode@gnu.org; Fri, 25 Feb 2022 12:21:23 -0500 Received: by mail-pg1-x52d.google.com with SMTP id 132so5202994pga.5 for ; Fri, 25 Feb 2022 09:21:20 -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=pHaH10Spo9QWWIYpARQtpdk1rww/VYk33Wt5WlswUM8=; b=Mp32Atu07jg230Zpq1htB0etIMY+8LZxnfWqPnvNGaInEVIP44XSiCt2fnRwUNH7Wf rDBwLCkISG54aezYpKiXB+OqRLbJuVNuQ5y7YqjSiOdGLGy1SxbkiQyLSiN9B3/xPPMV YsxAHAjTHRGJbm0+rYXeVC3BqoAQVK7OIzRGU= 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=pHaH10Spo9QWWIYpARQtpdk1rww/VYk33Wt5WlswUM8=; b=QX3ocAHjfkntLSpEYJD5tUeqmh2Tq1a/YtXHX/ZPaXxYRsf7lvEpuesXGCZaSAG26c kl1AXIdYHqZXR203eHgtxFSQUysKxKzjSuo6KNlc0MVhXVMXN/k4a7IByzXZC5GacBwS MeyQI83qc6fLl7ApoSHoPOISpRWKoTekukYp99haJbu0/1Xj5Ir/fKU1v+llYR47ecpI sxb7zh6l0v3/7Est2+obT05sb5KhsAX27PwoOMKjUGhgBJnt+uaEMyRilFlS3qtyDkbh KjbfmQOSeceFAUkW3swZ/N9jb6y3rKN+SisriPdEMgBvILXGTia2jhk5XehYYqhykLtc cUDg== X-Gm-Message-State: AOAM532AhKIXW3g06c+Z6MDZ5hfZ+NvAytQecVNDTMzqzVGIi/iRKJTU d7fDWbklwDyg1m9evJXTYSIJPg== X-Google-Smtp-Source: ABdhPJwA7nnhmmUQy9LsvCfoYP72zgBaI4P9kNarM2gNBRZPwkMhXaID0YLoMkY+0Avp7YpvlgaXPQ== X-Received: by 2002:a05:6a00:a8b:b0:4cd:6030:4df3 with SMTP id b11-20020a056a000a8b00b004cd60304df3mr8721398pfl.40.1645809679178; Fri, 25 Feb 2022 09:21:19 -0800 (PST) Received: from smtpclient.apple (casbs-pc-carballo.stanford.edu. [171.66.240.201]) by smtp.gmail.com with ESMTPSA id i17-20020a635851000000b0037462b77f94sm3132195pgm.34.2022.02.25.09.21.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Feb 2022 09:21:18 -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: Date: Fri, 25 Feb 2022 09:21:17 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5e7b9189-2d12-30fe-ea59-c13575db7fbe@gmail.com> <72B4C8C0-724B-44CC-8435-AF044FB3065F@umass.edu> 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::52d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=apc@umass.edu; helo=mail-pg1-x52d.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=1645812420; 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=pHaH10Spo9QWWIYpARQtpdk1rww/VYk33Wt5WlswUM8=; b=kX/VQto3AAzasbW8R+ymbqcDam1U9P3XFYLlNLuId3Mi3fq2wJV57AhFtM7pLxQ1CvHuQz syzd+/7UPe9PLoIUZJm9x0Jkv3VmFt7Hr9lyOe3YItfz2oPdnEJZqbN+PjO3ex1kY+sriQ 0gm9JHpZCcyKGZDNEAF04FVcVxUoJFVLOAvW4FS2B7YH2kHtSHPTKYY2dxL7TOCeqKlnDD lPrbvMA03eQ8Tx6bySWNn8XhrIWRCD1HUx6lhgDBy+euJkVghkk1OymUE9Va49U/bsLDTY QynyeGL7FuCn1qT3LR3HW+fuU5Mni+oSRWXcQltj6dNsPR3x7tov8249xKwREA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645812420; a=rsa-sha256; cv=none; b=aKD1cOkrNZ3wFw0SwscnZtfIZFwHJtMbHsRidSSDU5yiOMhcJ0QiP9KV2L03c8zMky/52A ZmKm3tps97WtDrl0T3T4E0/aW6BR4GawDvnp74F49kbiQnMtitDambym4G2bilnRo1tOUT Sp4oIs3WhXzT/yI7C0/zXFJ7WFSe/C9Z9LAq22UJiqcYYAWu+bmBPEQl/jsKz4T4uKk/8c E3MR/EhokpIo3d/0LxWCsvse1See/zkDDahp7wur07F6vI5Qs2bKdI6QBIsAoUAt+h2TPp V/6+8SzqyF+hK8nzmzHEuEm0OdOVHXgm8f/zojZOa4bCiGBPz/xSY7Hg6vX/CA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=Mp32Atu0; 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: -6.83 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=Mp32Atu0; 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: BFED82A636 X-Spam-Score: -6.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: fN916wuZ1X+h Thanks for the suggestions! Will have a look.=20 Best,=20 A.=20 > On Feb 25, 2022, at 8:25 AM, Max Nikulin wrote: >=20 > On 25/02/2022 04:11, Alejandro P=C3=A9rez 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.) >=20 > I have no idea what interface `org-store-link' should have to be = really flexible and convenient. >=20 > 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 >=20 > # Local Variables: > # org-id-link-to-org-use-id: use-existing > # End: >=20 > at the end of specific files. >=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? > 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#L= 1171 > see definition of "org-contact" link a bit above as well.