|
From: | Max Nikulin |
Subject: | Re: [Bug] org-insert-link removes on one link from 2 added by org-store-link |
Date: | Sun, 23 Jul 2023 17:39:15 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 13/07/2023 10:34, Samuel Wales wrote:
link has already been stored is a bug in my case in that i can't just go to a header, grab it [whether rabbed bfere or not] and then paste it. i surprise easily when the wrong link gets pasted.
The message is not a bug, it tells me that I am trying to store a wrong link. The issue is that current implementation does not prevent appearance of multiple identical links after several cycles store-link/insert-link to the same heading.
Whether stored links should be reordered depends on specific action, so a defcustom user option is not a rescue:
1. Collect links in certain order for `org-insert-org-links'. Duplicated link is a real error.
2. Copy link going to immediately insert it. Making the link the default one sounds reasonable. Perhaps the user still should be notified.
So I disagree that "already stored" is a bug, but there is room for improvements.
[Prev in Thread] | Current Thread | [Next in Thread] |