emacs-orgmode
[Top][All Lists]
Advanced

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

[Bug] org-insert-link removes on one link from 2 added by org-store-link


From: Max Nikulin
Subject: [Bug] org-insert-link removes on one link from 2 added by org-store-link
Date: Sun, 2 Jul 2023 13:08:18 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

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.




reply via email to

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