emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture fails to insert link even on :immediate-finish templates
@ 2019-11-03  0:06 Leo Gaspard
  2020-02-11 13:46 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Gaspard @ 2019-11-03  0:06 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I have an org-capture template with :immediate-finish t. In
notmuch-mode, it looks like org-capture support is not implemented yet
for the search interfaces, and so when capturing on these interfaces
(without noticing), I get a capture without the link.

Is it possible to make org-capture fail loudly when capturing a
=:immediate-finish t= template for which all the substitutions didn't
succeed, instead of just having empty strings at the substitution
locations?

Thank you!
  Leo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-capture fails to insert link even on :immediate-finish templates
  2019-11-03  0:06 org-capture fails to insert link even on :immediate-finish templates Leo Gaspard
@ 2020-02-11 13:46 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2020-02-11 13:46 UTC (permalink / raw)
  To: Leo Gaspard; +Cc: emacs-orgmode

Hi Leo,

Leo Gaspard <orgmode@leo.gaspard.io> writes:

> Is it possible to make org-capture fail loudly when capturing a
> =:immediate-finish t= template for which all the substitutions didn't
> succeed, instead of just having empty strings at the substitution
> locations?

Good idea - I've implemented this just for annotations (%a).  When
:immediate-finish is non-nil and the template contains a "%a", chances
are that the content of the finished template is useless when the %a
cannot be expanded.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-11 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-03  0:06 org-capture fails to insert link even on :immediate-finish templates Leo Gaspard
2020-02-11 13:46 ` Bastien

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).