From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 YAUbL6UI0GS9IAAASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 22:55:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iMZaLqUI0GS+YQAAG6o9tA (envelope-from ) for ; Sun, 06 Aug 2023 22:55:01 +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 02BCF45DE3 for ; Sun, 6 Aug 2023 22:55:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=RY2gonxU; 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=1691355301; 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=Ek1CTFEL9ZDjz0lnmLVAvbeDogSRkyeJ0DjOZylyGa0=; b=dDg1lhLCaw+obz7sWlYJKRzvJZXkRS/mBXksgh4hv04BV+hnNZP6q+7TSYxHomcbfBa3Uj ZY+CAuLmfJ+3jWEBmkJ6c/d0an0gX4NWqK/uIwO9aQnI5qyUcBTEvS8751meC7ZR9Oocc0 LP4s8TpL9IP+Ddpwa4gxgNAagVpQXwGZoYmnnpzZO6UVpTZtpNBoYDjdIc8XOYki7+k2VS ztAp1Eg4uT40ZYqPJZvIAaOkb0PD0SUzJR3A/WJ7uxbUZMk6x724egU0vWvzPoHvazQntq D1vv962Ex8ACbLwu3gvDMkc7IjltGty13lNCB8L/iduDV6avf0jkVa+mLiVz6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=RY2gonxU; 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-Seal: i=1; s=key1; d=yhetil.org; t=1691355301; a=rsa-sha256; cv=none; b=G9XKZyPWF6f6diwG4gz9We20Br2+9uvUvVmdXhoMxtGDf3k7o/hBzLJOJ1cPetVqJeYgwk xVsBWy74HFeimJ9C8X/yuhmw2lBI7m9o8WbCL2n4lFc1TtD17q9y3vBKtLYmm6WAp3HCgv 0hF9+oIQju5MzXUwKwyosR21IHKFBICIPEpzkGHbM9UimiGUVF1anFqbUFAGk/nT3REMim i98mvPWPoWCp5WCGBbJVxbOIax/YgX0IinpWI6CK5RyaNfjSDJ7uNXkCORnjb0/2cRepQN i8MbMduOg6p7Q/nyKUYyaYvApc1c3sZV908lyCnjjd2DKlRMZ3I4wtPURAgP3Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSklK-0002xI-Sy; Sun, 06 Aug 2023 16:54:06 -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 1qSklJ-0002x9-PE for emacs-orgmode@gnu.org; Sun, 06 Aug 2023 16:54:05 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSklI-0007J0-0T; Sun, 06 Aug 2023 16:54:05 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fe1ef6d290so1574429e87.1; Sun, 06 Aug 2023 13:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691355240; x=1691960040; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ek1CTFEL9ZDjz0lnmLVAvbeDogSRkyeJ0DjOZylyGa0=; b=RY2gonxUj2ntUQqknwRn+FLm+snVCjQ4Yj1DIDLDoFOBelEA7vvCqjcziPlw49gadx HSrGsoOrbVGjV9PK+AwhDqoBeM4lM+BoOsLWcUGEd7Z2TLGAoJxd5y8jEhYtu4uHVVNS wgH9lvr1QupXxn0xZ0xGyD6dLLI7qy3amKJBOTXNc+33f7e26tBjg/dd7SQqFx+p/AFN 77aV/gV3ZnhKtDiMN2AnUHSFmRLu8zN9H2D03YayYWszN/ZjHZ+ZeqyaZU50UurPMQGU hFxDFKZ0m8ooguEZkivIz5/iDjw8KdLZu+Hn9OkfDQrd8pqFNL6sUHJN0JtJDFp+MJZH A2Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691355240; x=1691960040; h=content-transfer-encoding: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=Ek1CTFEL9ZDjz0lnmLVAvbeDogSRkyeJ0DjOZylyGa0=; b=lLrVhb2V+rCjYn6ZRjciTzjtoikbJKARW4HcLxYobgUbyfzkqCKmdQbj7Q7+49mZ0G fZ+H0koOD3pVI3TuGLWan1SgmuOzJWiTBXZgMtKaRqC651r2erBtdT3Xavf9Rz1mx0Ag U4bl+QpjzQAKS9i9fCP2fT2750Mpny+uphRan8yyha8HxdnT7ubmds54Ah8rYruSxWtB 2sOq/T6fM5UJH5k1gXuDj7Oh6c1X5/JwvPMamPuM57/VyyE0Sf2ZeN9W6E5J0jVjkt0O RFKe19/4f9gvJzBNYvxinOXe6og9yUCXWwRcfiaxFkf0Sus+rIVLK7Q5/Wqy2oFQwPzn kXsQ== X-Gm-Message-State: ABy/qLb3meANEo0/A63JTpZ+1WL+wZXWoBCVLOsdGEVEpXYNHlyYqYCU dzCFwsc6J0WaaN0nPol0Ipvwfn2j0px0arTVsBn4f8AMX8goPg== X-Google-Smtp-Source: APBJJlHUrEOoIpzDGmtP2ZBYgL9cb8uDd8MH0KI8fkAcdTG2KWm2xk4kolaHVfdDNcC97o8+Mr7ui966w9iVp0E97sk= X-Received: by 2002:ac2:5fa7:0:b0:4fd:d186:6603 with SMTP id s7-20020ac25fa7000000b004fdd1866603mr10826876lfe.0.1691355240203; Sun, 06 Aug 2023 13:54:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:3402:b0:270:13b:14c4 with HTTP; Sun, 6 Aug 2023 13:53:58 -0700 (PDT) In-Reply-To: <874jlcovnw.fsf@gnu.org> References: <87ilb8vsns.fsf@localhost> <87mt0iwoii.fsf@localhost> <87h6qqwh23.fsf@localhost> <87fs62acea.fsf@localhost> <874jlcovnw.fsf@gnu.org> From: Samuel Wales Date: Sun, 6 Aug 2023 13:53:58 -0700 Message-ID: Subject: Re: [PATCH] Re: what is the purpose of "This link has already been stored"? To: Bastien Cc: Ihor Radchenko , Anthony Carrico , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=samologist@gmail.com; helo=mail-lf1-x12f.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 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 02BCF45DE3 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -4.39 X-Migadu-Spam-Score: -4.39 X-TUID: nXCOeQb2fUV8 i am confused. org-stored-links is a command? what are the known user needs for storing and pasting links? i am also unclear on why we have a dedicated paste function as opposed to kill ring. probably a good reason. but wfm. i merely wanted to store then yank a link. which in bugfix errors if dup. i also envisioned other less defined use cases. stprog link several times could include having colelected a bunch of links, perhaps in sequene but in the meantime wanting to copy and paste a single link that is by coincidence in that list? i could imagine such a thing. On 8/6/23, Bastien wrote: > 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? > > -- > Bastien > > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com