[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inserting links stored in `org-store-link-plist`

From: Alejandro Pérez Carballo
Subject: Re: Inserting links stored in `org-store-link-plist`
Date: Thu, 24 Feb 2022 13:11:52 -0800

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 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?  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, 


> On Feb 23, 2022, at 7:50 AM, Max Nikulin <manikulin@gmail.com> wrote:
> On 18/02/2022 06:26, Alejandro Pérez 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
> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]