From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CAKwGBDQvWTZEQEASxT56A (envelope-from ) for ; Mon, 24 Jul 2023 03:12:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ENrkFxDQvWTuWQEA9RJhRA (envelope-from ) for ; Mon, 24 Jul 2023 03:12:48 +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 0623A5E324 for ; Mon, 24 Jul 2023 03:12:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=lmpccsQq; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690161168; 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=Y7nbsNU+mBvj3WPcMchfqXeoA/ahyUGLV2IOdCouoGc=; b=Lx4kXMjJEJCaKru+sfFSwK0lG5XB+pwObU5lbXHU2JBCENI+a89ESruzJOgg7on5hIXkzC WUNfgI4ZgPG01i4hvOSNl4/0CDlHKi+JZf3nZ3JmJ1+1uJLvAbKGM0J1GlApYxBGSQOMp8 AZBE02XcfqvbcEwlZiFtJyAGSw8mVdKHLEX+7Fc+p9LVQuk2ugBAHNLK+JGWUvfNUMFPrt TIGO5iZuyCDSHzBh+VAOuDD/8UgeIO49kCxz4rMZVwmZX+5i3NOPVp3jRSuaLlhs2qWvtt hKC82kpNdc+6QnRpDqS4Qjz9RAN06Q1LRJGOKeUineXXcZmhJ9SBCxQKeGY9Iw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690161168; a=rsa-sha256; cv=none; b=tsFXIxpzpTUxknoNO8kUl5mEDH1ogGxs9wtzxCTno1INHEmVlbul6doZtrZUCtlfo/jUNF HzE/cWfWkBhif/zyFrhx/W5QUf3dKZoBITTAQX7Ymvgr6Gaeta+wNYigOIWmDWHOGXp0Be QGFhwZd0Adj9T3F7F8eeRs77TI/ms2M0bnu94Ktus6SKHDKiqM1u2rFuyEgMfJoOt1+c11 9vvHNfJGQJwyz6Putl655u/aW4qCEQW98qa+EBIZUMFiraP7HQtaxEuBHLNV6MdoGOyVdJ caJVB0pEqO8TRjf1i43NreS5OrWnKekzrFD7SQfLG7xpR1ywKaolg2fFT+dwBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=lmpccsQq; 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"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNk28-0003X1-5p; Sun, 23 Jul 2023 21:06:44 -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 1qNk23-0003Wo-0r for emacs-orgmode@gnu.org; Sun, 23 Jul 2023 21:06:39 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNk1y-0002oY-Gn for emacs-orgmode@gnu.org; Sun, 23 Jul 2023 21:06:38 -0400 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b951a1a03bso12695271fa.0 for ; Sun, 23 Jul 2023 18:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690160792; x=1690765592; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Y7nbsNU+mBvj3WPcMchfqXeoA/ahyUGLV2IOdCouoGc=; b=lmpccsQqTsRIy3MOWSRSNqdtwb0QvluYgIrZ4wVFQTrtpJdBsxtcekIXQynJja4j61 AcW2tzyHYSlQyBXW9uwDS+cYvAgc/Y2nEuvAgz5we9P+iTEU0LSor9hhazWt89uTfWB5 BCGjs4tnrTynwGkN46G/npkpMZ/hf2ZN8Oyv4+cusa+ln8bbtW/OC5eiZm7DzwM384+l Z9iSyVvteYphuLp62NqZ8vxgfVFq0t3oZd5O6j6T+ga55a8w/LNk/oQH4eSaaKLeL6Wk dAWBkBQsA0QlMZKYC5R68j5hIgb6y4QlczIptzJDg5VCU/VOGcbAjBVRCbuRLMtjxbON Vh5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690160792; x=1690765592; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y7nbsNU+mBvj3WPcMchfqXeoA/ahyUGLV2IOdCouoGc=; b=UJhDZIB9i6KYKat1e/iHK2R+gGE8zvkReWsBtZ8vDWD5XGosax3/G8zWM6HxuUk3hk H9bRO35+6rnqmOLMpRju6rVDCpS6QJe1h/bHAqmn3Xw12I0uHHdzjlBB56KJDUu4JWLn gEibHywaY4T2ykuzewNRRIhcJdJV/OymfzSHdmLRiC5wdXQnbGrnKBXHMbzLbA593v31 5lcJgP9kJFZoJP0Y3mSnYMnaNIE0arr17seHOBR1PdFt+7cU6g6a4dXvqPMd6uSxQ5KY ETdScC3+at4KONC0B+mNqwMijAVIPGvqYIWM/t6xa7My1d0uq2OBPgCLs3USL3RSszIr 6mfg== X-Gm-Message-State: ABy/qLYgFiQmD8B27pfMezIIbsYg6Q/0o6AhwxPR6y+60AaWQoYRVZm3 T7idn9tq7eLxBa0HS0sDp9jDcL/dGPj/r7nQf4kLXYZcSoRusw== X-Google-Smtp-Source: APBJJlGx86R1Ymkj3XG+3pvwmcQCAawUQn2QEz/DZkVKWDlB+fDLdnoVFVQVkzRPm+ls7uJipbznvo9wQNF6i0SISbo= X-Received: by 2002:ac2:5ed9:0:b0:4f6:a2f:beb with SMTP id d25-20020ac25ed9000000b004f60a2f0bebmr2786825lfq.5.1690160791834; Sun, 23 Jul 2023 18:06:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9a:488e:0:b0:268:94be:fdc7 with HTTP; Sun, 23 Jul 2023 18:06:30 -0700 (PDT) In-Reply-To: References: <871qhq69dn.fsf@localhost> From: Samuel Wales Date: Sun, 23 Jul 2023 18:06:30 -0700 Message-ID: Subject: Re: [Bug] org-insert-link removes on one link from 2 added by org-store-link To: Max Nikulin Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=samologist@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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 X-Migadu-Spam-Score: -8.27 X-Spam-Score: -8.27 X-Migadu-Queue-Id: 0623A5E324 X-Migadu-Scanner: mx1.migadu.com X-TUID: xrzTumMUg5QI "in my case" On 7/23/23, Max Nikulin wrote: > 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. > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com