When some heading has the CUSTOM_ID property
---- 8< ----
* title
:PROPERTIES:
:CUSTOM_ID: a-heading
:END:
---- >8 ----
M-x org-store-link adds 2 entries:
- [[*title][title]]
- [[#a-heading][title]]
however `org-insert-link' (C-c C-l) removes from the stored link only
one of them. As a result the number of unused stored links increases
during an Emacs session.
My expectation is that
- either `org-store-links' adds a single option (my preference is
#custom_id)
- or `org-insert-link' removes the whole group.
I have no idea how to implement second variant keeping backward
compatibility.
Ihor Radchenko. Re: [BUG] org-store-link-functions advertizes that the
first non-nil return value is used, but it is not how org-store-link
handles it. Wed, 28 Sep 2022 09:03:59 +0800.
https://list.orgmode.org/87bkr0gvi8.fsf@localhost
Would you mind reporting this and MWE in a new thread?
It will be easier to track then.