From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 eGEBB0WWrmQtsQAASxT56A (envelope-from ) for ; Wed, 12 Jul 2023 14:02:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AMvJBkWWrmSr5QAA9RJhRA (envelope-from ) for ; Wed, 12 Jul 2023 14:02:13 +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 942A759134 for ; Wed, 12 Jul 2023 14:02:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689163333; a=rsa-sha256; cv=none; b=Zl2fotHojcir4SCCTNZ6szKxUZqY7yM5LwFsHlipiwPQmF2L1NTOPDYUcyHfguOzWkOHME b+eX4p8piSJPdR26Cn3lSvQTUA3uwLejJB8h+z/KaBERWitciRa8F0ZCn6T1/GzGzVEy4w hMJ/c/M4QOe4FdtSDfPCsb5jZ6/JWTjefNPFFGwZWl7wN9IxM3qp2v26jd6YDrtOR62QYX 2uslZxOo5KFvgtgJ5xZeODWwLWf8Qxhay+jwXl+7FEIaeWZ0WIXkde1V+QlcFbAJf1Ald/ NZQQtAwBU8ayAr1NUppWI0XYSeQ49KVM9UTq7a42salqlZsmCQGVl5tAnO+J1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689163333; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=/FGQVRWMF6oo5m5ui0UWSXCk/ZzR/UHFhfWWuKqzZPI=; b=Uhnz2KVA5xvpdsnThpdXBnSFYEhzVhoFkB1LnMrPsA+3/bVj3dtZoi7eeDs4OtPrgBRgeM tZCiG04AffUK7G3bC4YtJWDg4UVXjzkl9x8Chs3+tKgV+8DGOd8k0/uQZHdLGyZFVOiI7s ebsy2YjwdT13dLPtn3CKiXDH8GULe1AyEl4YdLqVl8iJn6KKG29p2Hv5sCk3CLHweQSGK2 xmSPy6fTOOIO3A+V9yqoi1mJ7lzeumPR9zkg3OIXI98gs8yjKub9k869Z/C9CAantvXd9a eN/FC5lPLXCIyysFMGMTW2qmgVFDQ12TYlZu6qK9P3IVAljeHmi4PUDIFu9Fbg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJYWy-0003Kt-1j; Wed, 12 Jul 2023 08:01:16 -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 1qJYWo-0003G6-Q3 for emacs-orgmode@gnu.org; Wed, 12 Jul 2023 08:01:11 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJYWn-0007c9-G3 for emacs-orgmode@gnu.org; Wed, 12 Jul 2023 08:01:06 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qJYWi-0006CE-Co for emacs-orgmode@gnu.org; Wed, 12 Jul 2023 14:01:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [PATCH] Keep the link if the command was cancelled Date: Wed, 12 Jul 2023 19:00:51 +0700 Message-ID: References: <20230630221120.21657-1-eugene.dev@lipklim.org> <87fs65gnzk.fsf@localhost> <87zg4df2sp.fsf@localhost> <7e00a459-cf81-3cac-d26f-752e2ba792bb@gmail.com> <87wmzhf20k.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US In-Reply-To: <87wmzhf20k.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.11, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.14 X-Spam-Score: -3.14 X-Migadu-Queue-Id: 942A759134 X-TUID: 1s8IPJ9cSvok 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.