From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sJdiKOjqz2R2fQAASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 20:48:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eNV1KOjqz2RHiAAAauVa8A (envelope-from ) for ; Sun, 06 Aug 2023 20:48:08 +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 CA2AA53F54 for ; Sun, 6 Aug 2023 20:48:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=TdhxMpnP; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691347688; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=23tpzgxRYsGMhEYXz7Gbk6YDvXGs+72xovt+whVzYgA=; b=RN7RisN8UMt8ko7gDUHt4skdUfGtQ36Y0xIRav6fhergpiFGr1OZ6mViHs3Iss06GFBWCT WuEh0AVdmgIM9HLrTYRrna6PW4656pG1ErYPUK/oCg86oebE3hgaAJjr8Dn2wWKPYsDc0A 3+IUCKEAX6Yd3RurEj3/A8OFuq8BGnoYh9xlm0tmDqkHe5gXgGOXrS4XvAobs5l5RCGdsd IDUi+XE4JgYyZSZV1KaEZsr1/DK9533mAZ7Uf170V9k0MvxDneCQhck/jhzsWa6btuMTf5 xn3iPiizeocEwHD8rBQmic02oTvCbuh/tfTurmsimc1JVxwNtP9CsZmDoR4oaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691347688; a=rsa-sha256; cv=none; b=r2SJrJVQtWzWQjNbm8XQSIQkGya2P9CqJ5rY5/YYPMYNKOwOr0G23zuL7FODgXssz/kW8i cA9apPemjCJ6jWMSN8Fnx7vywrICnbxHISyCcXHg4MIXnwXgioNARGHw3gaB0WEnlDl6Cq AhT3nY8efqHyjzC5GInIiOTfy8pyGU7M6/BDIu/7ofcImQU76M4S2HIRl8U4t4/6kIKKgG 6wOSdV7sLJVMOSBZ9KYph1TpG6m0MsGF+OcZwhujC8VuksdpPCfyu/l2Pyw4rz1VRsn4RJ aibajec3N1OMeRr5agd5hXda34sK0/iNCo2xWtccS3Jvb6wvasWFjQSRnf7B/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=TdhxMpnP; 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=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSimf-00086m-Cs; Sun, 06 Aug 2023 14:47:21 -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 1qSimd-00086J-C0 for emacs-orgmode@gnu.org; Sun, 06 Aug 2023 14:47:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSimc-0003sr-NP; Sun, 06 Aug 2023 14:47:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=23tpzgxRYsGMhEYXz7Gbk6YDvXGs+72xovt+whVzYgA=; b=TdhxMpnPJ9LQ9QZQ4vun PeslzUpWqFe0OHBZMi7BcRrw6D8sG+efNFoT1V+rlTTHVXXnD/ey+8BO4wwP+1OvlkU8XQLG8PwDa 1T905MYcOxsceCHUeeRB9pj2dPb0ccxa4ZbB4hbpCBQEvfJFwsNurQqt2/sMG0GTSAPLgeaSroJK5 AyB+qdRM65TPZ4nwhRUxP/zmL5KNu1Uvb7ji29ZsI1sv/wBMnZswcIds9OShgUduzD8K5LNJBbEl/ 0HgC0O15yS2+2ku72mwczTPPFMh57O8RpsD5habN92ZY0TIbLsR0HeHyS0N8GCuJ6qeOOczxlHnZx U9JHv5xzUVEl2w==; From: Bastien To: Ihor Radchenko Cc: Anthony Carrico , emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: what is the purpose of "This link has already been stored"? In-Reply-To: <87fs62acea.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jul 2023 10:19:41 +0000") Organization: GNU References: <87ilb8vsns.fsf@localhost> <87mt0iwoii.fsf@localhost> <87h6qqwh23.fsf@localhost> <87fs62acea.fsf@localhost> Date: Sun, 06 Aug 2023 20:47:15 +0200 Message-ID: <874jlcovnw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: CA2AA53F54 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.92 X-Spam-Score: -6.92 X-TUID: Vzq7bRnOvRfV Ihor Radchenko writes: > * lisp/ol.el (org-link-store-existing): New customization controlling > how to deal with already stored links. > (org-store-link): Respect the new customization, allowing duplicates > to (1) be added anyway; (2) be ignored; (3) be moved to front of > `org-stored-links'. The default is (3). > * etc/ORG-NEWS (~org-store-link~ now moves an already stored link to > front of the ~org-stored-links~): Document the breaking change. I'm not sure what is the real world use-case for allowing storing the same link several times. Maybe one was provided, but I missed it. I believe the new default behavior makes a lot of sense, thanks for implementing this. I'm skeptical about the need for a new dedicated option, though. The current single universal prefix argument seems not that useful ("A single `C-u' negates `org-context-in-file-links' for file links or `org-gnus-prefer-web-links' for links to Usenet articles.") and we could use it to force storing duplicates, which is more useful. Here is the suggested new behavior, also modifying other universal prefix args: - M-x org-stored-links : don't store dups, move upfront if dup - C-u M-x org-stored-links : force storing the link, even if dup - [2 universal prefix arg] : negates =E2=80=98org-context-in-file-links=E2= =80=99, etc - [3 universal prefix arg] : forces skipping storing functions that are not part of Org core. The current behavior for 3 prefix args should be the default when the region is active. WDYT? --=20 Bastien