[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-id: allow using parent's existing id in links to headlin
From: |
Rick Lupton |
Subject: |
Re: [PATCH] org-id: allow using parent's existing id in links to headlines |
Date: |
Thu, 09 Nov 2023 20:56:44 +0000 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-1108-g3a29173c6d-fm-20231031.005-g3a29173c |
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