From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WO7eJQ1fKmJ0igAAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 21:26:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2AePIg1fKmKRMgEAauVa8A (envelope-from ) for ; Thu, 10 Mar 2022 21:26:53 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1B7BF31967 for ; Thu, 10 Mar 2022 21:26:53 +0100 (CET) Received: from localhost ([::1]:57326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSPN6-0005am-9Q for larch@yhetil.org; Thu, 10 Mar 2022 15:26:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSPMc-0005Yh-IK for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 15:26:24 -0500 Received: from mail-oln040092065072.outbound.protection.outlook.com ([40.92.65.72]:60749 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSPMa-0007uk-Cr for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 15:26:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JZVArut12k440bAqs+0S2d03yQcyrEaYwR6vB1/HNMj7WqGmlVVYLyKdoEORDfFzGVZdrtwNu9IKnI/TAoJ7FgxMZjEU7Eqi/PZQJ69rlH8P70GDeGKn+cLntW+BJw/Xm7ElDK53W4KW7D7y0IXqeclVpIIeeKNTFgoAeRX/3ASOpos+6E8yAPxaK49z49babJFG1aXYZTqoeKCcK9vUVtLDQHuWZeoG+DWbkZ/fE/G3JWaavvL8luxgGm5rupEHkvFmvRcPwukBNHwMvd4+fesB8pUK1SN8Rc9NUGWEnScqI4okjdLtARfkRANn/zvVS3PS/IcSOtbY0JE7fArjCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cV0d3K5vX2Pm3emtZYZQTG1z5F1+ykrCzttpM3e/+lA=; b=hdmly4JpE1GmBPQdn+1Rk8O2WiU5mrrgLovYjwCM0/PGdzLMFNzPlAtFNHEBVFnG+syZzWnPR7ydFDYtio3IDpT3ycGGMXU6z7x60Do0j/xPEDaaL5e23G9fqO1a77ihHt46bTGUNd5ET/u4uKnxaxFbq3tj6wkH4mrHT8HYojE0stxkX0u53jTWItXc1V18W4uMy0Fm6CPxYsw8A2gmuZWLbL5djG/8YGJAmLlLcBeDkRpeJteIxmetp2PCmy4drzdNPxeezQq6L+2w4K57+OSUNBmlAn75WK8/tBUJwljXWjKRDZJJh3lcv494a+yuk06xCI4OV7LfEQWTqmQsFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cV0d3K5vX2Pm3emtZYZQTG1z5F1+ykrCzttpM3e/+lA=; b=Fco/QyTEV6KbDTrC7g5jGPbA5L2CqugNdSFHQOovJv+ZBwxEx/bUOjeRZw9N2F0NRwUjud8DRCljdMP4GXKH53sY/if6sdxokRBzvgZKjwK9K5qWHU0v933026jmvhzyldIPUb96KrdGwcxY4DsNsYc/UlzA/cFdOvN61VKDokLjvOyf4QHEo8v1V3dRA4T81S4blGQNLmea16VIUnP/X//60Dof2u48vB5stIG3Ym89debTsGVkXESZnJP/JfvPtJBHGsHYaoovwlj8pOeUeumssv5brryh44LKFCadBU5X7Z1zGdv7cQUQfRf0B0QWPb5yy0pfomUe+fTS7rzjsw== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by PR1PR06MB4940.eurprd06.prod.outlook.com (2603:10a6:102:c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Thu, 10 Mar 2022 20:26:18 +0000 Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::e05a:8d81:8648:b10f]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::e05a:8d81:8648:b10f%7]) with mapi id 15.20.5038.027; Thu, 10 Mar 2022 20:26:18 +0000 References: User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: Max Nikulin Subject: Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)] Date: Thu, 10 Mar 2022 19:00:15 +0100 In-reply-to: Message-ID: Content-Type: text/plain X-TMN: [uLcmBe9YJh5aCvQcOtPT+z23e8dJW+CN] X-ClientProxiedBy: MR2P264CA0066.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:31::30) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87ilslh7vf.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 539e4e28-a959-445d-236a-08da02d43b4a X-MS-TrafficTypeDiagnostic: PR1PR06MB4940:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ejYusT+0nZ+4rPY618uimm24p6A/KBcn+LpJ3IbZL1TYsnhBK4SHeeJO4THImt0kLxlcNeWNt//G342Sh4EFwij5ULg2h7k1pRVe1o9qiQ5Uld/lV95D5TPoIsY8hzHJNXSFCFBmN9ijTiizfRK63PxrmYyn5wkjKh/q1TpHGNIcpP73UaALQAuV0ipIEjROj5NKhl1tagZvYH3pNZj9MI2Ujt84YpPU2vbJnp67A3BpXrUZ8jrXpmhCPXduS8RM/pO2uNumc8fDtgkCpeXG36B3A3BA9g3ojjVx9FQMRfs4EO/oaoNyJ3RTyTNPKbOG9TkLVEs1jDBSc2gT/soobcaLdNtUVXSvo5seEosvHAoWZUc9ITMsUoEsP8lR482WX+vE/vHu+hFEbbKXHCf9ckaD4zVfWo1merYCGOlLhh3+buGZ5P8glET/Pb6XrqZKyfUm8Kdj20KUCKcpuZ+9dHeDgWd0JEarBSmlqNGWDofMbmmiAicDk7QYHr4oAK+k12S7TH5XksfCcMlhysSMGfiGs9rgxS9RuRj8ibJdHNoMN0MQtGKc7cSov1ogAk8f/mvZAZjCMZ7vZA7tn9s2xg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?W4y2B+RZrPpwfzz9N3C2EW47K3Pq1LScmzH/TCxDn9H82pyODO8+I07huekf?= =?us-ascii?Q?mB+8l9JJjWnD2raP38tlQznFTLMrmLI4YoQg/N3Xgj/XL7Mu7CrGlQKahyGH?= =?us-ascii?Q?vjsrZmV0vf+riw/uSwawO03apTVZpl7ieDYSgaOhKLO+8EWge0GAHrorTr+w?= =?us-ascii?Q?mdCo3/nrSDTT/RYSE2BXKOAn287t70VlL5qWuscJsA3AnHH2RMoWNr0WgPCS?= =?us-ascii?Q?9ZTdPNOHplHK7oBL/dSunzEld3Qz6CYj9ElRQVYq7vMRzVOirDbYZUZgY2ZH?= =?us-ascii?Q?NG9vAOV8gTA/0fpFtsAFn18HsqvBwSgHQyF3JoKdWrX9aVfqboKRVRdnbIGL?= =?us-ascii?Q?7yXkuIXsXTpqD4oABxkUUt+YPlHxEmLSPQD5YJPWURcHP0zM1THul9heEnvr?= =?us-ascii?Q?xZhpH1ZG/dMUbXJwBpnIDPV7Q4r0xcQLGVitVaSb/senSMmIZGL1ITu7kQ2n?= =?us-ascii?Q?pBrp9pEF939yN/ea/LMiPi1GkSUrKjbFjlgmqGUSqPgmrtV3GQ1h6erWa8nz?= =?us-ascii?Q?tJE3evT0OX97O3dNHg7lyiRSxd26O5vSnvfrDm35HWS1J0Rvqovj15kx+MMp?= =?us-ascii?Q?t7BVkZIUpOvVNT6ZPUiWJmXdL/A6yC3rjBl3vOK5CyxVTdDP0u6GeMBf2Mvh?= =?us-ascii?Q?5eEOAQc7+y4MY73x4uqjLhZWZPeP1ZdHxLaFapCPnoWoF4RFb4z9OACtXubw?= =?us-ascii?Q?jmlduCuSdI+FLaAWylLb9TvOwgeptqjsDBUPHHV88lNtQfLjRwG/bQdHEtmH?= =?us-ascii?Q?t0VjKPhVtwUmlCQJxTTC4E78wPa2NGsbQpLPsAGCjCkYDvNZ4OUE921GiDLs?= =?us-ascii?Q?icD6KQCea49XcQrOyFhC4GhJGAFIF9axGWMJngReqvR49HwvRBUMy//aYO+x?= =?us-ascii?Q?4w9rEHGNoEQds1kIcWsvuh9zNax7nkMz8s/YHpilzjKHqAn0GtCb0BDfaNtl?= =?us-ascii?Q?aG0MuBB7LbEEMmzjy2WT/A=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 539e4e28-a959-445d-236a-08da02d43b4a X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 20:26:18.2058 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1PR06MB4940 Received-SPF: pass client-ip=40.92.65.72; envelope-from=ignaciocasso@hotmail.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: c.buhtz@posteo.jp, emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646944013; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cV0d3K5vX2Pm3emtZYZQTG1z5F1+ykrCzttpM3e/+lA=; b=MTclclfvBz580tcfVMD1DF8NevnF9iZGF/Pasm+jJZMoSDUikngOQBrs0L1l/7yjZk7EjW otUZeTjyDyUPzi8zhk5OceRM7V/lIZa935sU2/vJRyYuxSyshO00whh/x9tFEJ8cUevG7N bBvjOmksEDYGLqGZ4CKYEQ0j/PepQGXFGG39rxD4V3OOeFHnyteOxDZ3y5RZSqTLiq9vfy 3WVYQwDg9m1+ZJVcjNMLzLoTzhssc98w+iuY6K3+BP1OMUlBklQOCPnISnwzo17GPdeXVK EsKUenJAwlcuVKfKEDJkN9M9iteCryyFcxv6b7XCxkkV5gLfy9bhsUwZPdW/vQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1646944013; a=rsa-sha256; cv=pass; b=XMFY9tM1LN7h2Bo5x9BbCMz9HF/nLbmeuVWB+A76lFnLZmfIfy9Z5/HxCikKHP+I4uOUJi hEJguMdkbf3NBAMm1IsY7pcimtK6oym/RuhvkJUCE9Tw6cARpSfx+3tPd0fcBzasWzArXY 3x8GY3kf4StZkQ6Yd6iHtmFfumvHKSCBg5xay7oBvJ8ZtOqfgHK4dIi/tR4PlBkafIY2XS IOIoI12dL/aulY/SXwOZEi7xnPiG6ALlB9xk41XDIoioTkkPh4rd/Bj/UV9xdJf4ECmvzx fSGVlX0xdTxLH8NFE2h1kY2jMYB/PqToortDVOmJDtahiH5OyEX+20xXVp9ZOQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b="Fco/QyTE"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b="Fco/QyTE"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1B7BF31967 X-Spam-Score: -5.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: Hp8MABETDB8I Max Nikulin writes: > On 10/03/2022 19:53, Ignacio Casso wrote: >> For example, if we call this: >> (let ((org-capture-templates >> '(("d" "default" entry >> (file+headline org-default-notes-file "Tasks") >> "* %?")))) >> (org-capture nil "d"))) >> It produces the error: >> (error "No capture template referred to by \"d\" keys") > > Ignacio, could you, please, try the following? > > (custom-set-variables > '(org-capture-templates > '(("d" "default" entry > (file "/tmp/capture-test.org") > "* %?")))) > (org-capture nil "d") > That works, of course, but it's not suitable to my use case. The example I have provided has been reduced from a larger function I wrote that relies on org-capture functionality to create new entries in an org file, using a template specific for that function which is not relevant for any other Elisp code calling org-capture. Thus the function binds locally and temporarily org-capture-templates, as I've seen other Elisp code snippets do. If org-capture is already loaded it works just fine, and I would expect it to work too when it is not and the function triggers the autoload, but it doesn't.