From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-capture-get-template can't use a lambda for template function. [9.2.6 (9.2.6-7-g634880-elpaplus @ /home/n/.emacs.d/elpa/org-plus-contrib-20191118/)] Date: Thu, 12 Dec 2019 22:36:12 +0100 Message-ID: <87d0ctql9v.fsf@nicolasgoaziou.fr> References: <87r219zf2f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38299) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifW8H-0005ND-22 for emacs-orgmode@gnu.org; Thu, 12 Dec 2019 16:36:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifW8F-0004mS-DX for emacs-orgmode@gnu.org; Thu, 12 Dec 2019 16:36:24 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:45921) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ifW8F-0004gW-7Q for emacs-orgmode@gnu.org; Thu, 12 Dec 2019 16:36:23 -0500 In-Reply-To: <87r219zf2f.fsf@gmail.com> (No Wayman's message of "Thu, 12 Dec 2019 11:25:28 -0500") 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: No Wayman Cc: emacs-orgmode@gnu.org Hello, No Wayman writes: > Noticed that one cannot use a lambda function as a template generating > function. > Doing so results in the error: > > Wrong type argument: symbolp, (lambda...) > > The cause is the fboundp check in org-capture-get-template. > Changing this to functionp allows a lambda to be specified and is > consistent with what org-capture-set-target-location allows. Fixed. Thank you for the report and the analysis. Regards, -- Nicolas Goaziou