From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Capture template expansion: feature or bug? Date: Sat, 17 Mar 2018 15:17:52 +0100 Message-ID: <87zi36dbvz.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exCel-0000GB-VP for emacs-orgmode@gnu.org; Sat, 17 Mar 2018 10:18:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exCeh-0006I6-1c for emacs-orgmode@gnu.org; Sat, 17 Mar 2018 10:17:59 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:33713) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exCeg-0006GO-Qg for emacs-orgmode@gnu.org; Sat, 17 Mar 2018 10:17:54 -0400 In-Reply-To: (=?utf-8?Q?=22Fran=C3=A7ois?= Allisson"'s message of "Mon, 12 Mar 2018 17:28:29 +0100") 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.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?Q?Fran=C3=A7ois?= Allisson Cc: Org mode Hello, Fran=C3=A7ois Allisson writes: > When one uses the following template expansion, > >> %^{prop}p Prompt the user for a value for property =E2=80=98prop=E2=80= =99. > > it supposes one to supply a non-empty string of characters. If one > simply hits RETURN on a given prompt for property, the capture process > ends with an > >> org-capture: Capture abort: (quit) > > message. This means that all prompts for properties are mandatory. It > this a feature or a bug? I tried reproducing your issue with the following template: ("B" "BUG" entry (file "/tmp/bug-capture.org") "* %?%^{prop}p") However, I cannot reproduce it. > Of course, if I ask the question, it is because I clearly see use cases > for optional properties prompts (which would leave empty the property in > question): you ask for several information, which you don't always have; > and you don't want the capture process to quit because of that. But may > be there is a better way to achieve this? Another problem is: do you want to skip the property altogether, or set it to an empty string? > Org 9.0.10 / Emacs 25.2.1 I suggest to update Org, BTW. Regards, --=20 Nicolas Goaziou