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