From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8COEHIWus2S4hQEASxT56A (envelope-from ) for ; Sun, 16 Jul 2023 10:47: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 mp12.migadu.com with LMTPS id yLtQHIWus2R0WgAAauVa8A (envelope-from ) for ; Sun, 16 Jul 2023 10:47: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 1C5C33CCCB for ; Sun, 16 Jul 2023 10:47:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="AZOvcs/z"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1689497221; a=rsa-sha256; cv=none; b=GeD0D80TVfpHROa0iYpmHJd2MsWKP9j3ytn+dZVSE7L3cVQx5OtLXZpu+cokcG27pSQlAC gn1BTNdtOm3+dWJoIJPqj2wzYc1OZi+2Uau+Dp8SLuoiOIWGBl84SEuZPQvkCqw8UHZqtS cgoiSjZku1FHG83UO11apvoaPjxX2D22qHV1KelmsdXOWMeEJDnZg5WBvlKr4kpCC/A2/8 IaqZiVKcWLMXqkE04uVTV9tdpufEE7PEGQRnhqZEAYgS0WHdRVjUiUp+oIFMtmni7CM60h kG92hVw9wu6srb0bN5CW781hcw2XI8IAqd0DPA1fZjWdRyF7dfg9xebgtCbSpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="AZOvcs/z"; 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=1689497221; 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=AQ/+U7WcJ1QIKLyqnPVmMNWijJZbW8BdOE/Q54rn2ag=; b=XNezrwHUCNARPKR03IKdFxGa1uspVb+p1kaNhFkYVYaRKkZH9/tKgeaObSx6sX+R4b2MlY ZlN/nYy+0l7i/LCiUdNggRfmXmhFJXey6pYC+68K05ZUIzK1n7FkP4zW9O/Xcp46yQGaYy 7ZaWpNrSqabDzZ9I3ms+o0oRvtKPOP9qCEgDTlurxGgv2HmD2bAKe1rCZZ/fFxjMz33ZQG A+T48Pi2UkgLkEn/Nji4E3FEDo+UIkdaGYDbvd+Cfp7DFYbuOKS5uN5pL8CWPI4pScluLq 6PHAAdNrWwtgCjwOFqAJD5EKo60xaUxHpwKPKa3vI7FCX7CSax85qFOqCG7VbQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKxOG-0000p0-89; Sun, 16 Jul 2023 04:46:04 -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 1qKxOE-0000of-E9 for emacs-orgmode@gnu.org; Sun, 16 Jul 2023 04:46:02 -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 1qKxOC-0001g5-LX for emacs-orgmode@gnu.org; Sun, 16 Jul 2023 04:46:02 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0FE3B240103 for ; Sun, 16 Jul 2023 10:45:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689497157; bh=NPn0X8pTH5cWoKuQZtvKfjA874/W73CkTV2tZQH3ebE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=AZOvcs/z+4kwmphLfDpN6hcV2zds5rIXuBOZLI7+52+OQ5w1rrn43HhJpqQ0o5Tmt 8JQ/6xtOzEWI1TwlmWvAeNpGX9Gnew5F5evGMEWxqeK3Vtw3igd3APuvYFwgv2cqWw 3ANnMcP7Juno+Eit38uMhfCwTmmojGGgKYGp95oGPTrqGBITvx3CfCCuFPtC8x8tvO mZDhY3b+xFeGZ3acNeXeBfYBtqKepuS1vRYAde/j4oAtpJzmKh6uBdgjOwFEtwZUCz f/wHGCyANLVR8JgOFezuk8QLtsTPI5Au46Vubetg2mz4W8wD0BgEHYSKJ65fKgpl/i 8B63ruV9eiPqg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R3f1w2008z6tvd; Sun, 16 Jul 2023 10:45:56 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Keep the link if the command was cancelled In-Reply-To: References: <20230630221120.21657-1-eugene.dev@lipklim.org> <87fs65gnzk.fsf@localhost> <87zg4df2sp.fsf@localhost> <7e00a459-cf81-3cac-d26f-752e2ba792bb@gmail.com> <87wmzhf20k.fsf@localhost> Date: Sun, 16 Jul 2023 08:46:09 +0000 Message-ID: <87ttu4i6r2.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=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-Queue-Id: 1C5C33CCCB X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -9.18 X-Spam-Score: -9.18 X-TUID: WkomLI1QGUQA Max Nikulin writes: > 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. I feel like this direction is overcomplicating things. What about trying to mimic some of the existing Emacs behaviours, like kill ring. What I have in mind is how M-w C-y M-y M-y ... works. We may have a command to replace the last inserted link with previous link in the org-stored-links when previous command was org-insert-link. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at