* Capture template expansion: feature or bug?
@ 2018-03-12 16:28 François Allisson
2018-03-17 14:17 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: François Allisson @ 2018-03-12 16:28 UTC (permalink / raw)
To: Org mode
Hello everyone,
When one uses the following template expansion,
> %^{prop}p Prompt the user for a value for property ‘prop’.
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?
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?
Many thanks in advance for your time!
Best,
François
--
Org 9.0.10 / Emacs 25.2.1
http://francois.allisson.co
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Capture template expansion: feature or bug?
2018-03-12 16:28 Capture template expansion: feature or bug? François Allisson
@ 2018-03-17 14:17 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-03-17 14:17 UTC (permalink / raw)
To: François Allisson; +Cc: Org mode
Hello,
François Allisson <francois@allisson.co> writes:
> When one uses the following template expansion,
>
>> %^{prop}p Prompt the user for a value for property ‘prop’.
>
> 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,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-17 14:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 16:28 Capture template expansion: feature or bug? François Allisson
2018-03-17 14:17 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.