From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.orgmode,gmane.emacs.bugs Subject: Re: org-capture user-error: Abort Date: Sun, 13 Dec 2020 19:11:35 +0100 Message-ID: References: <87sg8a5x98.fsf@localhost> Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="376"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bug-gnu-emacs@gnu.org, Org-Mode mailing list , Ihor Radchenko To: Diego Zamboni Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sun Dec 13 19:12:13 2020 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koVqu-000AY7-Gk for geo-emacs-orgmode@m.gmane-mx.org; Sun, 13 Dec 2020 19:12:12 +0100 Original-Received: from localhost ([::1]:53816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koVqt-0003lv-J2 for geo-emacs-orgmode@m.gmane-mx.org; Sun, 13 Dec 2020 13:12:11 -0500 Original-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 Original-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 Original-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 Importance: normal Sensitivity: Normal In-Reply-To: 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: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:133807 gmane.emacs.bugs:195988 Archived-At:
 
 
 
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.