From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WFUNGGz+m2QCBwAASxT56A (envelope-from ) for ; Wed, 28 Jun 2023 11:33:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uA8WGGz+m2RtMwEA9RJhRA (envelope-from ) for ; Wed, 28 Jun 2023 11:33:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 119E810A77 for ; Wed, 28 Jun 2023 11:33:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qERXN-0005Sh-AT; Wed, 28 Jun 2023 05:32:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qERXL-0005SN-7w for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 05:32:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qERXI-0007Rl-Bi for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 05:32:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C5B22240104 for ; Wed, 28 Jun 2023 11:32:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687944745; bh=trYNdQ1dsWSbEMsGs0HE1Wi1XGV3SyDAKHhg7csDuW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=dTH/vuJX+69CVmQ75oykOZ/RzQ1ppZzo+qvU8VATts4zlgG+feqxtSLxNbAUewgKO KZJPUTukNg61tXZfo1Y9DFSjYLue9iNmf3Xqz1uWLAMODJS482oTVNolgEfAzj8Hpx yq4OCqJJEM/7v7ILUKnNnjMY2QPWISwJ6HYoWvP1Zzxz8eJ+jtAsrXRaczB3rz5+wX Jdd2jO2iIusiELFdwcnhVJrGZmwtNhyBST+/sM4/Bo64jqodKNTeCxjoQeGs6Z/3+E KZrPDV/x5w0g861xEKJ+CcvRRoI06Yo7PV4vSsrn5GG9SKU6+AdgCl3QiJppK6JoJk 4qWctejph9xqA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qrbvs0mnmz6tsb; Wed, 28 Jun 2023 11:32:24 +0200 (CEST) From: Ihor Radchenko To: Samuel Wales , Bastien Cc: emacs-orgmode@gnu.org Subject: Re: what is the purpose of "This link has already been stored"? In-Reply-To: References: Date: Wed, 28 Jun 2023 09:32:23 +0000 Message-ID: <87ilb8vsns.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687944812; a=rsa-sha256; cv=none; b=o+gA7Aj3MGzxVKMf+iuUe4onG8qLfaRGq9BHIV+fk0rdXenzyAMMaTLk+zhRTwwDoh2f9Y otbQQA2pRFTCX1keYWhTKhw/Xh836Gf+WbbLyUksdNPN9Bzry+8Gp1KiyI+dT5g52MXJTm V62SfZMYaNhqGmSagm9wNL4jiWQEkih9UzEz4BvjoWw8fAOCJcZ1baKbj3UV3kFdB3CVVB 3COdLgIo+NofzWpHAC4VpoO3OcZ/te65KuVgfcs9O6iE9Ky5hTpFbcr7e+ZeABRtoJ3Bh8 6tKVE3F4N/7K3s1uUJ/odHB4UrvIFh2xVJ6RUxX6Xa2MCpXD4EcqdEu7/29SpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="dTH/vuJX"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687944812; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ExKF5l9iTWvaOBquEAK/vl3wnSob1OQJUqdZ5jTvx7I=; b=qwxm2Y6p7nwqedFUrIKLXMuYaukDNnisdcNlC0ftomx1QkK97ZDpVBdsg23S4tCMlcmu0Q DindpIAoL4AWkGzSAFjT6j1WmfWmiEBcH1NYeEDsLLMAeWJO+GWPRZC9uBbMY8V7Ibk6GV sDj4XEg7o4dxY+CoNi531XOeyRTV9yIZXYZErTVObKbT5Cd/uo1gg5VGcO/hFb5vkLwEe1 7yoWXYin35/O+K9f3KeprfYVKGd968sdaIj/rkNA3yAru2YgNPGE+hlxGll7Y1mO1hkrmJ U84WVI0lKcAfF+aCmo9MkePc70Em4ydDImv/tRUIYebVhSLVoXHQU/rE7geKqQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="dTH/vuJX"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -9.32 X-Spam-Score: -9.32 X-Migadu-Queue-Id: 119E810A77 X-TUID: EQ0sOr8x5FS6 Samuel Wales writes: > in maint and bugfix i frequently do org-store-link on a > heading that has a properties drawer with an id in it. > > ... > i frequently get "This link has already been > stored". perhaps this is meant to teach me that i can find > it in org-insert-link? there are 2 problems with that for > me in practice: > > 1) i want to store it anyway so i can use the > mindless store-insert combination. This behaviour has been introduced in bb61b37ee bb61b37ee223fd89cf951a5fbf62e35e606a4646 Author: Bastien AuthorDate: Thu Dec 5 17:11:26 2019 +0100 ol.el: Don't store the same link twice * lisp/ol.el (org-store-link): Don't store the same link twice. I think that it will make a lot more sense to move the link in front of the stored link list instead of just printing the message. Bastien, others: any objections? (another possibility could be a defcustom, but I cannot find how the current behaviour is useful for anyone). > 2) org-insert-link, with my ido setup, and i am aware other > completion mechanisms exist but find it difficult to > switch, offers as completion candidates a completely > useless list. > > idk how to show you the list but it looks kinda sorta like this: > id:2134123-11234123-41234123--12341 > eww: > gnus: > ... > id:44242423-23452-345-234-523452-345 > ... > > as there is no description and the presumably useful ids > are near te bottom it is useless to try to use > org-insert-link. so idk what the solution is. The descriptions are displayed in *Org Links* buffer. The completing-read call could, however, be improved to display link descriptions as well. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at