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 qPsyJNE2K2JDGgEAgWs5BA (envelope-from ) for ; Fri, 11 Mar 2022 12:47:29 +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 AEilIdE2K2IEdgEA9RJhRA (envelope-from ) for ; Fri, 11 Mar 2022 12:47:29 +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 06C4B2F3B9 for ; Fri, 11 Mar 2022 12:47:29 +0100 (CET) Received: from localhost ([::1]:48694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSdjz-000090-HR for larch@yhetil.org; Fri, 11 Mar 2022 06:47:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSdj8-00008j-Sc for emacs-orgmode@gnu.org; Fri, 11 Mar 2022 06:46:35 -0500 Received: from mail-am6eur05olkn2036.outbound.protection.outlook.com ([40.92.91.36]:34144 helo=EUR05-AM6-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 1nSdj7-0000az-1e for emacs-orgmode@gnu.org; Fri, 11 Mar 2022 06:46:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fy5j+1rnF4BfskMWCWd1xjB2yLjop7MYhWjDbvAIG/HggP4GzhWecaqC3PG6OtXuuhF94CTIuAiZrx8KSByucgOR53J07A6dTmsJ+cAkouEsT+x50qxyNgBFwBdH7ua+l+SzrCXmiPQWUxxsojYyTZ1gA/4em26UvLkiOD7fKXzwV23hio307LDDaZEXZrMXbmuC0jYp+3V4KNaJPALMRHa/T0dIEZ7KAsHKcy78AeKTkZq4UIt3FODxkqLATDJC2FaMCTP9izC2JVAhprEF0i9CFX3PU8TSCvJ9o+MXULxObqEfl+hS1Azu+w9zZ9IpZz+IB0uGttLy/9uDfM4dNg== 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=CXhQef/oWC2XcyARKSrCJPt+i4fQPTYgv4Sf+aL7srQ=; b=XQ4Esax1W/408Dbxy0AUspDtwGv9OW2gaIp+R/eqishsz12+k+t0oj2NDoxZpf9TIb4KFzhoZAvtul0/AgSzDCDGjM7BeyF2PQK+5SYK6XT/6c89kv+1RfabAxh8CVdcf9zq0bPKZT8vLEyPxqiCwr1eCccatFKUrcrsWUe6oXSgJ7H0i7/FwoxdEXmfNEquHw5wbGlJpg/7YVO0Cq2M3mdG4jVXkTI5S+QmyKgGnHictQsc4gTwNM1RXFgGPSXRkYx7Dmb2zmIUDkrD6OG5fxgVUlm407b8z93TbR0hV12Zcm4oDQangBUtLHnv6eR2XS5bHzx1rphqH9xRzGeCGg== 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=CXhQef/oWC2XcyARKSrCJPt+i4fQPTYgv4Sf+aL7srQ=; b=Mr/v0/0zeXAiKUzvXyQe5GrCU7R+YKfV0XO2mbhjgV4b+M57qQgyTQ/bXp5gQuFP314KeTnynEn7MIqBYnnrDRtX0vTA3UGnB9PQExQAdzc8K4Bx1du7xjbWdkQeAJqLWo1uacoyui4+9SH4QcYsc2G995To4lV7kfyS9AD6Cr8jdDpKxn+BKoW4f+h5dtyqBfzReFkfU9/1/DB9rz6wkZ/+QU1DIgdEMAfZyABmPKhxGTOL2USQqQLssIuMKoToItZ6kc4oahAreYx6OnEwAvAd+qnOm5jtHdBmPCsoPQx3ocFO0yxwU28CqrlxRiX6agQN3aUxvxT8HrzQZGyF3Q== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by PA4PR06MB8500.eurprd06.prod.outlook.com (2603:10a6:102:2a7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.26; Fri, 11 Mar 2022 11:46:31 +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.030; Fri, 11 Mar 2022 11:46:31 +0000 References: User-agent: mu4e 1.6.10; emacs 29.0.50 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: Fri, 11 Mar 2022 11:38:24 +0100 In-reply-to: Message-ID: Content-Type: text/plain X-TMN: [fVekJj36F202003DoDYqYwqswj95b74R] X-ClientProxiedBy: MR1P264CA0033.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:2f::20) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87wnh0r9tb.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8c829991-bad4-4854-3c07-08da0354c826 X-MS-TrafficTypeDiagnostic: PA4PR06MB8500:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mwLkgqKUaSAA3Jpc06cA+YVaQS5R9RnCeseH8QW/NQY/WAL/+PX+Ce6ZsdPuCJ0ejYhVGIpS9IAJazds8YH2iaYIhWAs4ZirJhEEM4qYrSE1f0ZXG7rF0n5IbNtunYxYeIT3bMNwl0bSP0sfuBfl0HEEYPaEuuUFcY/vvy1NCRf7Wsfn4SIK2NXfhBBp0n28DmMBl3mdRBdVqJRUjg5kiId0eKuIFlo30wenL7bz23a7ChMD3K6PPn+egQ5PHiQIM/VSZf86hpUZPfkACd84VtCnWdLZZkbCq9OiMK8xXUYwW6Jnpb0fSKflIaQkqIwLsV6SZEnkZEb6rpqZGim0b9FgliiSG3NGAiWBg+YAvfGqr5SA6kC7u5YSAq3FA8CYFBHZmPGKuPiOQrCZRqMCi7gRUihxX3s4F6tC6iM1h9AWPz8qO7a+n0G/V0kLkBH9ibBsyNdqYs1dVfYeWA8XN5z/4tFrVg4sIutgLOrJbmyWtLUame9Sslrd7h75Iq5guiL8WHRHp+DcISyny0RMSjikUX9sgQ3ZH3wOUSk9EVMhRPeFVzvJ7+dEsShDjAlN/PaDsum7B+AhbwvMp0b1Tw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?t0yIHQ63ujdwtzbEccwSY1VQOYL5aUukohJInieZsN0OAN83Rdl/+N80YvEP?= =?us-ascii?Q?R7kXuf1tTN3QeJuSGsOEOIBXoMKbRHKWACe1vdWDNeL6eB4YTvTuK2tfn6sd?= =?us-ascii?Q?WF0jtlO6+3jBHMEEhEzofYyc/B73R1FG3WXXcUiYvUJ42VKj7xeATt+tOWMy?= =?us-ascii?Q?ZhTyasiFno/YELRJVWtnDf7du9ZkEwrAvFHiGnYOCjXtZKPUsPoQKPsxonNM?= =?us-ascii?Q?LPDset3jPuhyi49G1UjO4YkFkkWPk3m0fd9eJqWZ9u7U8D7rRo6PrEJtwbVh?= =?us-ascii?Q?6CSmXYnr83mNtMC8L+LuVuFX4oPLuktWo0IpSmps4lIrxia1o2XxsLeqDysU?= =?us-ascii?Q?WloHJJKF5qwFDFQKz/Rp76iev2Qf6By7TYvLzW3By5PKO8RrC0uloWYlwl3P?= =?us-ascii?Q?PjVFoYktStYMUsajKKnfcHiQ9MkL+GInoGPBqlphrMSLtKLT40mZwc295/R0?= =?us-ascii?Q?iPxoDg8IRlunTIhQf9Xuqb5K4FKE8Flbmy+H/Jrj6KPpkYFTZ57v5p5Y7yLP?= =?us-ascii?Q?giaUcdrDz52I8F8JLhoVVTqoBgtkbd44QOMEHbP0IvtfqLjVG5aZwlGW+uK4?= =?us-ascii?Q?DGkuCMJzbAD4TQIEgq+psI2AtHow8OcPSC3qFVoHvK7vj+hAUHJh1WQT2V4V?= =?us-ascii?Q?CZri3m6xY2FKKFWYJc7nMQZorrneA2oxg7xMvEZfRm01g3dUVuGsfmHILvz0?= =?us-ascii?Q?p/2uub2A4+mEOgAGHaNw7EVXdrzx8JV46hC6/Z2X6RCayY8g9Kx0N+YNa63e?= =?us-ascii?Q?aLFRgSg7U94AInLWlp4trJwSxUUucTVGmiLzDS4LystKXQEZTzwMYOwn8v5N?= =?us-ascii?Q?3eE4Q3sbj1KhSd8f1VUCC7SptQGvdx9x7TeOG8XXxK/8TQGPXWRMTQ1SqOTl?= =?us-ascii?Q?RsfgNlRLAIgSqt9E5uJqTsO5sYAa6kvkhiJjoun64MG3KnFezr4RGu6oNwtx?= =?us-ascii?Q?c9d9uODGejucJxIXV6vWlA=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 8c829991-bad4-4854-3c07-08da0354c826 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2022 11:46:31.2209 (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: PA4PR06MB8500 Received-SPF: pass client-ip=40.92.91.36; envelope-from=ignaciocasso@hotmail.com; helo=EUR05-AM6-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=1646999249; 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=CXhQef/oWC2XcyARKSrCJPt+i4fQPTYgv4Sf+aL7srQ=; b=uojSjcmlzbmuxhTKbWOuyLlBmngxiky9pOyBGHCigsCtuknIj/gxbL5sjQW1vAOJgpuKlq MxRj1I+fS0OAnvutPwhjVFsO0awdWy0YdlHsi9tNok3EdGsFtunX14HzQ1Lihu7vijXMp+ 3PXjf0G4CHtDohY8RjGV9JCe/zccyknwlxYrKUjKoPduHFKiFqbPqKjrOaeXjqv/65jBOD hrzvJ6joCdWwRGalgMv+YUjKzZOZhcBm4/SNI76CFO3141lxM21GcF+YxznjB5NUwXireB /DBHaIBvgxfrteWHlcA1dLHUpNYgAUQ7yFEqciePL8LKOoW/eVqyRUsuk8kqCw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1646999249; a=rsa-sha256; cv=pass; b=XgofrGpFyq1U7gtgGTK5SCKjYivW4BCEJon6Ji8iXR1gkikjciL4ebi/kCEkd/WmKz+Hw0 Jw3MtzMjpzBjGjZqnuikck4oOYdF8WGKmijq/eIQufQMipPLJdphpgFDva0GVNxhLzcqGo 7RlnV7ViFLSD39scmfugvl5WJBcUSRXdM1VksNb6n78LAeJHvFI91Pv1H2SYxmf6g6vL1P h+KcOsJXv3kzhjpOTuyay8KSHDjs6v73sQIg3XXJ3cXMmCcrcwJwL/8DJntbcDG1MAf+B7 sqAZQ7KMX4VrRKT5Xmhu9aQwpLxUxoWdg9b/5ORqVf/TGvJhW1oes4qKWJoIOQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b="Mr/v0/0z"; 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: -7.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b="Mr/v0/0z"; 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: 06C4B2F3B9 X-Spam-Score: -7.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: iWiehF3Tm7h1 Max Nikulin writes: > Ignacio, I think, you can add (require 'org-capture) inside your > function just before `let' and it would work almost as lazy loading. Thanks, I was already using (require 'org-capture) in my init file to solve this. As I said, it's not really a problem for me, I was just reporting it in case it was a bug. I was not sure since I don't really know the inner workings of autoloads and custom variables, but since this snippet works when org-capture is not yet loaded (setq org-capture-templates '(("d" "default" entry (file+headline org-default-notes-file "Tasks") "* %?"))) (org-capture nil "d") and this snippet also works (let ((my-new-var 2)) (defcustom my-new-var 1 "New variable that did not exist before") (message "%s" my-new-var)) ;; This prints 2 (message "%s" my-new-var) ;; This prints 1 I thought that this snippet should work too when org-capture is not yet loaded, and that the fact that it doesn't could mean that there is a bug somewhere (let ((org-capture-templates '(("d" "default" entry (file+headline org-default-notes-file "Tasks") "* %?")))) (org-capture nil "d"))) > I have no particular opinion concerning adding autoload cookie to > `org-capture-templates'. Emacs has enough number of them, but Org has > no such custom variables. I put an autoload cookie myself and it doesn't fix it, so it's probably not that. It's the first time I manage autoload cookies though, so I may have done something wrong. I only tested that the autoload cookie worked by checking that before loading org-capture, org-capture-templates appears in the completion list for C-h v, and I can evaluate it.