From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iAT9NOmj1V89GAAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 05:17:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wDWxMOmj1V8AWwAAbx9fmQ (envelope-from ) for ; Sun, 13 Dec 2020 05:17:29 +0000 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 2B9359402A7 for ; Sun, 13 Dec 2020 05:17:29 +0000 (UTC) Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koJl9-0006qy-Su for larch@yhetil.org; Sun, 13 Dec 2020 00:17:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koJkk-0006qr-Qb for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 00:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koJkk-0001kP-Js for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 00:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koJkk-0003Bj-E3 for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 00:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45212: org-capture user-error: Abort Resent-From: daniela-spit@gmx.it Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sun, 13 Dec 2020 05:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45212 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: Ihor Radchenko Received: via spool by 45212-submit@debbugs.gnu.org id=B45212.160783658412184 (code B ref 45212); Sun, 13 Dec 2020 05:17:02 +0000 Received: (at 45212) by debbugs.gnu.org; 13 Dec 2020 05:16:24 +0000 Received: from localhost ([127.0.0.1]:47268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koJk7-0003AR-Ms for submit@debbugs.gnu.org; Sun, 13 Dec 2020 00:16:23 -0500 Received: from mout.gmx.net ([212.227.17.20]:34121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koJk5-0003A9-Mb for 45212@debbugs.gnu.org; Sun, 13 Dec 2020 00:16:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607836575; bh=Gps0wm0NJtAO3mYBqofbJOciss5c1E99h0aHXNtbylI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Wcid4EK+tpJCwCzZqLPcSWojstaGjFg2g5cDylAzyA/NiYbJ8kRAvidi0namsxUnS nrWyCCdNWgJ5PkDvMqGzLvaJWj8zZ1TgA8DZunWyhyIBV2aWWqRsxvkHLiLlpebBQb PQx2yMahlzRQXPmTUQDCN1Ksa1LhkgN65U92Yq9M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Sun, 13 Dec 2020 06:16:15 +0100 MIME-Version: 1.0 Message-ID: From: daniela-spit@gmx.it Content-Type: text/plain; charset=UTF-8 Date: Sun, 13 Dec 2020 06:16:15 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <878sa25nja.fsf@localhost> References: <87sg8a5x98.fsf@localhost> <87bley5sfo.fsf@localhost> <878sa25nja.fsf@localhost> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:SKxuGANd39OZjEvcG1EUwh7zqy6OAdPsuinWsR3Dm55h3ekktDVhNMsUhKNHfywC0uWjt 8KYpT7bRknf0ew+nuIWUZpYeL2e2D40Rx3nzPGuxnyqyK+YHyZScbXYI+gLQI0BPUVJKni3q80e8 qW0rZxSGXZg8knWKahJoxBfWz0aDyUcEln4Wjqz98JG+q+gthuPzoOuF/tUV19c5AYFVDUxY4a/1 w/ij4vEV0uEVVk/ki3Y902zeylq3h9hQ3RvqskUrLoJ0VoAtFCAAVqVF3s5/Uig9FzW4KlYSoXIK 1Q= X-UI-Out-Filterresults: notjunk:1;V03:K0:APeKz+tnKXY=:EHvhnBakLFjXegMcZ9Iiuh 0H6haU3KTfI/+Bm/o79YP1mZYwm8tL5KrSqL3fAAUhacBTj6Y/AyfhWEc8nz+W4YBk6hOnCfZ W16/lJIgHJMJRyn7JR/HivcMrjiQ6KuxfM7qXfd3ZMFLC+IejiPR+Hr1ZXtOp1pF04qZOnM5l LVtAxzI8rs8+58wgj2g2st2ZzgSnQWYB1dckOWMbvdNA9G5AoUmykf3QU5FD2NTFUFucuK6Rd cmJvCa/PtJMHf/W7xu2WqSz8FqhgAAqpw4h6BEbl315+2mL7oMONt1xTfGVj9BXxGm23jY9H0 H1PkaXtd2j+Mvey3sx2DaDb1Bk6tisB0+D0i2PashL0NCZSImiGxevILWhyMzk7OAA1uhdifQ agztrnAYBmryPS5yIv+9uk38hwAV5d/M9vchHRBb90A68XBdAXhPT0Ek+b9nh81pLl/kfXFAv XNUJfIf1kfS3l2G/LCA4A/8YMInkt5lyNAB7N1yLinTUu6hgOQhZCPb1egwo/5uya72bhsNsm LJ/Fv2Y/9ilhxsZ9CuIlW3h0MdAeh4yYGFHRsiEs8saIHKJ4PRZHd9FCwTGFpR8tteCTuC1tu 8ZE1A1glUGckY= Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45212@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.80 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmx.net header.s=badeba3b8450 header.b=Wcid4EK+; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2B9359402A7 X-Spam-Score: -0.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: rUxKhxp2nw1g > Sent: Sunday, December 13, 2020 at 5:37 AM > From: "Ihor Radchenko" > To: daniela-spit@gmx.it > Cc: 45212@debbugs.gnu.org > Subject: bug#45212: org-capture user-error: Abort > > daniela-spit@gmx.it writes: > > > Can't one throw a capture abort signal instead? > > Sure, that is possible. However, consider a possibility that some > external package wants to detect when capture is aborted. If I was > writing such package, I would need to do something like > > (condition-case err > > (t )) > > If org-capture is rewritten using catch-throw, the above code would be > broken. Also, there will be no easy way for a user to know if the > capture was completed successfully or if it was aborted. The problem is not the "Abort" itself, but more precisely "user-error", rather than Abort. I suppose that depends on how many packages on ELPA ch= eck on "capture user-error". > Note that I do not oppose this change too firmly. I agree that throw (or > even just normal exit) would be cleaner. However, changing user-error to > throw may break external packages and should be considered carefully. On > the other hand, user-error is internal detail of the implementation. So, > changing it should not be a big deal. As a precaution, it can be > announced and implemented as a part of major release. > > If you want this change to happen, I suggest to provide the patch. This > will encourage the maintainers to provide feedback. It is not so much about imposing it, but it would make the whole thing cle= aner as you described. > > What case scenarios would rely > > on user quitting capture rather than going ahead with an entry? > > For example, I have a custom capture function from email. The email is > removed from inbox upon capture. However, I would not want to proceed > with removal if capture is aborted for whatever reason. I see. Still, I am not against signaling an abort. > Best, > Ihor > > > > >