On 03/07/2023 22:28, Ihor Radchenko wrote:
If necessary, removing stored links without inserting can be made as an effect of negative prefix argument in `org-insert-link' or in `org-insert-all-links'.
I do not think it would be a noticeable improvement. It increases code complexity, but `org-insert-link' + `undo' requires the same amount of keystrokes.
Maybe I just do not like prefix argument. Instead of triple C-u to keep the link I would prefer to be able to activate it from the link prompt (something similar to to M-s i switches for incremental search).
It might be more reasonable to have some binding to cancel `org-store-links' immediately after this command.