From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CIDNIoNZ1l+mQAAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 18:12:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mMdtHoNZ1l8sWgAAB5/wlQ (envelope-from ) for ; Sun, 13 Dec 2020 18:12:19 +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 D08E094014B for ; Sun, 13 Dec 2020 18:12:18 +0000 (UTC) Received: from localhost ([::1]:53816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koVqz-0003lv-PI for larch@yhetil.org; Sun, 13 Dec 2020 13:12:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koVqO-0003lh-FZ; Sun, 13 Dec 2020 13:11:40 -0500 Received: from mout.gmx.net ([212.227.17.21]:41001) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koVqM-0007Ta-Lt; Sun, 13 Dec 2020 13:11:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607883095; bh=6oSyHDdftUXAUISo9bWIuj0z2n4JXnpFnBEAzo6Wi+w=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DLPwVWPW+fVX/3NHVmym4QuOCOwwe+DTXDRrMCC0BAxofOxUD8mwFztrQKdPWBZ7Z XfzBUfW8MaL3Dxz5UdM/G0nZBEv8xPemKQBGSJj+XWkbFWIbQAbmk1xsP7202YaJ8A U1DvBKTHRBJQJiIpBukcYKTMFhnOBN6i+Pn22mRE= 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-bs09.server.lan [172.19.170.177]) (via HTTP); Sun, 13 Dec 2020 19:11:35 +0100 MIME-Version: 1.0 Message-ID: From: daniela-spit@gmx.it To: Diego Zamboni Subject: Re: org-capture user-error: Abort Content-Type: text/html; charset=UTF-8 Date: Sun, 13 Dec 2020 19:11:35 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: <87sg8a5x98.fsf@localhost> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:IT+9FwqFXG/a21qHn2+Ljw71aD9VyE8flI1aZvijOW1rpEk02qQUNBpwDuwTg95da21bR XwJ4JJv+xCLfDGlNaoguK0iNGKiZ5UI5tHs6qx55XaJicLuFaukDoK7m54b8Du9L5jJ2Bcqss9e+ gjaAQkCXbCuElKtVZ4AGpNt1CRcp5SqmJ8VrE6pN6E5HSDrtYd18Ui1Fo71Fc7mXjiUamvrF3sOD DsrSDTtGnFMyZOg9jzHK9lab8LBxAKMsMO3Y0AWO+rtBAjfLnPYAMqTHxAUbT5mTyeveUOc9t9A9 gE= X-UI-Out-Filterresults: notjunk:1;V03:K0:iLd7aUAA2wk=:rAsPjjAfX778kJDmakh50x 752UiU5efHveNSwpeVaP/FOykRQT8PwIBdd62KcptMxemIWLhnBxRnusIFtuusnORofPuaNU5 D/4Ta8712ozjsyUCTc+1m/KefIYhoyM5jqLN9h5seNjUn8IJTz+qFZWUUxkYjVqaba0mcjsmf 2td+lKUbPV5O54GCh3A7HsJt9xmAucQZc/elWRP4ncZ0XAaMkVrJcuQndFPsUh0nq0x4znxIi 3aCMF21QfrsYtDtyFmoYyoIMzT2vca+OHGl39j/BpOP9WXVfaCp4YckIVmRDovncLNqeaJGy8 nyU+YekBp5RWfWE7o2WIyK36x/vwOBwIlWTgxLBSSIE1wy+RQcc3LMXOFYpkLW2IOwiLaAWl1 pjGPXrBYjUZ3l3m1SuyT11KA5Yq2dcGOvI69QOcW29hwT9uLsgj5d/kjBMvCosAv7AYznmsQi sdGq8xSy/InERT05czCIhOdo85YykXM7DMicZjcgLxDkIbFkDcnWpyLNeXQzfQ/2h3pYg8pn3 c8G4cPKPclhfsUu1zCsCXHnvA1avELsn6Nb7qtFtxckbZTmBZUAkv95V+JBs3H/vlAHBY5qK8 Amp6N2tnbjsRM= Received-SPF: pass client-ip=212.227.17.21; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnu-emacs@gnu.org, Org-Mode mailing list , Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.50 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmx.net header.s=badeba3b8450 header.b=DLPwVWPW; 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: D08E094014B X-Spam-Score: -0.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: nGYhqj54ccY/
 
 
 
Sent: Sunday, December 13, 2020 at 7:07 PM
From: "Diego Zamboni" <diego@zzamboni.org>
To: "Ihor Radchenko" <yantar92@gmail.com>
Cc: daniela-spit@gmx.it, bug-gnu-emacs@gnu.org, "Org-Mode mailing list" <emacs-orgmode@gnu.org>
Subject: Re: org-capture user-error: Abort

> Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.

This is intended. Normally, it just shows up as a message in the
minibuffer. Or do you have debug-on-error enabled?
 
Same as Ihor, when I press `q` in the org-capture screen I only see "Abort" in the minibuffer. Where do you see the `user-error`?  As long as the effect is what you need (getting out of the capture screen), what is the problem with the code using the `user-error` function to achieve this effect?
 
I use it to build my templates (incl. switching between templates) and could get many errors.
To test functionality, I custamarily abort the capture.