From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-capture fails to insert link even on :immediate-finish templates Date: Tue, 11 Feb 2020 14:46:50 +0100 Message-ID: <8736bh1bjp.fsf@gnu.org> References: <87a79desd2.fsf@llwynog.ekleog.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43309) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1VsU-0008Vz-TC for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 08:47:05 -0500 In-Reply-To: <87a79desd2.fsf@llwynog.ekleog.org> (Leo Gaspard's message of "Sun, 03 Nov 2019 01:06:01 +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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Leo Gaspard Cc: emacs-orgmode@gnu.org Hi Leo, Leo Gaspard 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