From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uLcuORAAKmJhTQEAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 14:41:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GNt2NhAAKmLkcQEA9RJhRA (envelope-from ) for ; Thu, 10 Mar 2022 14:41:36 +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 596E839A00 for ; Thu, 10 Mar 2022 14:41:36 +0100 (CET) Received: from localhost ([::1]:40474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSJ2s-0008RZ-RB for larch@yhetil.org; Thu, 10 Mar 2022 08:41:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSJ1f-0008NA-6z for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 08:40:21 -0500 Received: from mail-oln040092075047.outbound.protection.outlook.com ([40.92.75.47]:60630 helo=EUR04-VI1-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 1nSJ1Z-00073x-7H for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 08:40:17 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IsvFDWfR7gwdhEL0oT68l1lR85Yo8XaSBFgpCZXK2U6xJIIiLM9mQwAq499JzEbD91hfw1fiue45i9fKIgWJsT6sfBSiVluxSsPZ87dDUFw0v/UZD7inCPqbdgNI3sjPs8qLd645R4NI1Fe7tuEEmcaAOAzy2FouRYQSiCkgWWe4J26VFUENlHIFpHPxUliMnpAy6BZYFhxZytokqQS/nzQagpDHIaUnNTonrj7nz+f590Bu8e32nPuHEggGx9gK3JGAmH6zYJi/TrrhbsZqmnop84VFsfdHvZG0N0NfUV4/y0KdM4Mg7OOceuZZem7/2/vnVv2wmD8JkTakpojNbw== 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=RN7GlGhG6baWOaUGNCfOn0cXNvZD+pEDJ2RzZ6unS0I=; b=Xl0PrI6vga7fZPEJwABxLIbeNcCIgt3XHN2qguUWrR6KHQgxSMBJC96qxvp5nYqlAUtMvB7K/ygyaFDwa5aFiJUdibVQQGPGR5nrULfvuOPaagWHs4w8NWRiT+ctvJGzvviv8Ewyi3F4UzuSCLFkAOrffSe0hNAFtzGhAxgdMzWM0bmenYVinxqg2uWP3x/oJ7GfXxvTHGyMndG/puCgdd+pDTeFJXOnztSP2g+IYg6OGnLjEd5HKeSanQaxd/GkIfq0nluJJTSiPYvQCehMa9KUcqfI2k3pPJgSK7UtLuZZ+/LtxR2wtxvUUCzn6UAM071845HtzAYT6c5D/v4egw== 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=RN7GlGhG6baWOaUGNCfOn0cXNvZD+pEDJ2RzZ6unS0I=; b=rgkEcZziAN06VeDb6D9ZPIHBo+pCGYg24fGk7ufgHXut6MHcR1QYgUDJWsBVgDvt21lSvjCuHCs1ZiWpOlt1S/jH9qR0IxuoFc2ZrK1BYgbWMQX1+SUGFxCurmchP0KMSSTaDqrd71vDuBHI8emjnWUSGCLVhVxaC80WNNoEAvRrz7oiHCEdQkezl3zfWiQk17Xre7AV9U6mxfzzMuXDW5kY2ZC81gfp+bRmyAFHKkpN9kDtlxk909Sf76zkkOCLtOoyWDpRH6tP17k4zM31uWQDIrgM9iEHl1y+DFbaDYsuS4jQ73gNXKXdC4dp6p/kyMP/di3k/D7RG/H20UJQYA== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by DB3PR0602MB3787.eurprd06.prod.outlook.com (2603:10a6:8:10::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.21; Thu, 10 Mar 2022 13:20:00 +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 13:20:00 +0000 User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: emacs-orgmode@gnu.org Subject: [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 13:53:03 +0100 Message-ID: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [vCcUYEv31oQsEDjmk/BaYIuy7TgHJoYs] X-ClientProxiedBy: MR1P264CA0126.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:50::29) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87pmmu6j2d.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f698af80-9601-4c84-d25b-08da0298ad9a X-MS-TrafficTypeDiagnostic: DB3PR0602MB3787:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NmwSUE4AeR3NLz3HiIZNnE9YAWdX/czva2XtYidX2rEF5Mx2N/z8+KqvPOp4MZKglApsIk6OnyMB3U4xd9OZp9DqV9BRTEAfqDUInFv5IXcwe2asHBN5pdEZO+WNm3nN9RJmNqkCT53AE56N54Gvf7KRSVkfFcHOeKaJ9KzqBBGAstpg+SD7669jHty3p281nDmSSq5uUadX9kbGgrp85paLxjstTfB47M4/wlQW9Dj8pPAMehy1/W9GDUbaXU5dJPNhP6wCcYaW1DH3zMTPyKoPzspy2nsNBGta3eQAqIRFwUCTAAdVkryMUQ/SJ6Ae/Tjvrt4T7C776eZ9ERxPuFj7LveTJAYvrTvgIgrmu6kIyYRRBWQbMRBLxy2ms22cbFq9b6kHGO1F1XB2bKm2kUIYlagFv+c8ghdWoIgut/wN1b/wIUi2UURpGPH9ACTpvCIRCU9lKd3B9/MRj8kXFzkeSyhOzwwYSU0ZWIhs+gBQCj3hvMq9RJzv84mu/eviGDHzpVjBs1N11OhVfThCJLnEkVT04z+TRVsw8+aYDxErmyDjNxqF2E0deQfJa2eOqOmy1ZtVn8WgpbBQ6LE9gQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VU93dkNRZ01MWHA0R2wzR0NEaFJkZjJxSDZ5V0pDOHlHQlhoSnlkRDdSVGtr?= =?utf-8?B?MHNvME5xSFpzY3ZlYm9DOFh2QmN5R25zdVUxZHFnQUtKeGsrdFBvMzBxeHNp?= =?utf-8?B?bWtFTDBpdkJVSFZDQnZTT3U3RDQ1K2hSNVNkVnlXa2pHM0ZQb1VjOXNlRDNP?= =?utf-8?B?U1BjcklFN1pkTGJTczAvcFBqL3Z6dm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2g3Uy81elFtWjB2S0lTSkpsYmExdTM3bmdRZ0dwSmxORW8z?= =?utf-8?B?TlAvbGF1WjBobzI5ZHdzZ2pJenRIVmVIdFYrYlU1ZXc1R0Z1VHdVREw3STIv?= =?utf-8?B?RUNOcEtERHpCNE90dzdmbElvak9nakdabXRtTUU5QnFPdCtXMVZrNE5iVmxv?= =?utf-8?B?R2M4OUYxMGN4ZHRDYVBOSnNhYmZtZkxobTV0NXM0ai9vNmR5b0NzNXR1Rmp1?= =?utf-8?B?ZHlDY0lFbjVDWG8zZXVLZ2IyNmZWaFhkek92MWRVMENYZUtSUHhQckQ2WHly?= =?utf-8?B?Y3ZYcUxlTi94NmViWE1CRVZGNzZUU2NlNVpBZmxKUGtMZm1xQzMyM3Q3YWY2?= =?utf-8?B?eXppd3NtVGtPbE1yQSt4cHlEZ0R2WFlSTHNpQnUxbXl0akc1NjVtRnBwSHAy?= =?utf-8?B?cG9tVFgwNnRpd0VKaWxzMTBUeVNCVmFjUzlSdUpISS9sUGV0Qjk5dGNsWHU2?= =?utf-8?Q?owPKNin8bhsvF0e1mTt1CzV1c=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: f698af80-9601-4c84-d25b-08da0298ad9a X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 13:20:00.3188 (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: DB3PR0602MB3787 Received-SPF: pass client-ip=40.92.75.47; envelope-from=ignaciocasso@hotmail.com; helo=EUR04-VI1-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: , 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=1646919696; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RN7GlGhG6baWOaUGNCfOn0cXNvZD+pEDJ2RzZ6unS0I=; b=FjLFYg1X2qTgIF8mp1jimwiKi7uiJtgeAHpCKGKHLJgGUiPph5pCTvtEM9boHV/cDPox/6 shafx9XGezGIbXg18SBTalvu3R9ZmDRkZ8wM8hb2NJyy2lAIcLU8lR3NUPMtrxwJXOVR+a oNzmQetUbkjgCWt2Xyv1EqsH4mwPr2yGkLsWDv/SpM2MXI2aPSlA+d74a6hrHHJ3jPf36j W4+kQM8y5H8F6ul8/Ph80e7JiDpx4ga+lqfQGnBjMd+VqHhIHX+gL+qzE5V9M7OZwBhtCo wo4CdeFg6ZzdqDLScWwIU506jEwIGi2hM0/S9dznaT2TNtzj45gIUbY/0DfxIQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1646919696; a=rsa-sha256; cv=pass; b=eVbSTchu068AMLut2A9WDFRBthyEdSUq8IP5mPZzWoBJ5GGxgOcah46MPF2gvKhvIg+CUW cHUhGas3SsCCUwgdOnfgBcnkmvFhaR7uOVDluhVlvfjGPeI2kGpN8om9KzKnri0aMAYQH2 MgkQNUhorHLubxgsSWe6dFo2h3wXXKgbTylmuTKNKnS+eRiIlCHuMUNuQCTRBA0iYhwovb vO/2znoNSvoEC/hFbpDGTrSNAhyrO32uv7je4HNPJHzyRu+zEtOOaRvcgm63S8akanjlHX GA4p1vRj84Ps39OsO04Kyn/68HzE5F72GaB6vounlF1BtKsaWu8X31TW9fB71w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=rgkEcZzi; 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: -10.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=rgkEcZzi; 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: 596E839A00 X-Spam-Score: -10.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: xAPKMcT0rBgw Hello, I think I've found a bug with org-capture autoload. If the first time you use org-capture before it's actually loaded is within a let form bindin= g org-capture-templates, it produces an error saying that the template was not found. 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") Furthermore, depending on where that form was evaluated or defined, the next time you called org-capture may work or produce the following error: org-capture: Symbol=E2=80=99s value as variable is void: org-capture-temp= lates In particular, if it is evaluated directly in the scratch buffer the next call to org-capture works, and if it is part of a function defined in my init file and evaluated in the scratch buffer, it produces the error. I have tried this too in Emacs 29 and the behaviour is similar, but sometimes the error produced is (error "Defining as dynamic an already lexical var") instead of (error "No capture template referred to by \"d\" keys") This again depends on where the form is evaluated or defined. Best regards, Ignacio P.S., I now this has an easy solution: not autoloading org-capture and havi= ng (require 'org-capture) in my config. I'm just reporting the bug, if that is what this is. Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20= ) of 2022-01-16 Package: Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elp= a/org-9.5.2/)