From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IEYfAiJ9m2Js1QAAbAwnHQ (envelope-from ) for ; Sat, 04 Jun 2022 17:41:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sIn7ASJ9m2IsZwEAauVa8A (envelope-from ) for ; Sat, 04 Jun 2022 17:41:22 +0200 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 3E70B3B97C for ; Sat, 4 Jun 2022 17:41:21 +0200 (CEST) Received: from localhost ([::1]:48850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxVtv-0006Sq-Od for larch@yhetil.org; Sat, 04 Jun 2022 11:41:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxVtH-0006Ry-1A for emacs-orgmode@gnu.org; Sat, 04 Jun 2022 11:40:39 -0400 Received: from mail-ve1eur03olkn0820.outbound.protection.outlook.com ([2a01:111:f400:fe09::820]:10855 helo=EUR03-VE1-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 1nxVtF-0005ap-1t for emacs-orgmode@gnu.org; Sat, 04 Jun 2022 11:40:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YyLbUXe53gQlywmfsfdxEUXpzsf/YqoLxH1YzoFSwiYWdnsB3xiJrJMXCig3ZXSbQF6ysmu0cwwP4md86BWOWYVwIrmHROnqsG4qaMqnqOJnrWL2YYb1MU3TXM/t0m0VBoWyZNfCs68NqnlXulpQqQTlkxMbWkP9+FdLhBh0w/h66EekUvVVeHRHdxgzOC56T32UaaeIKp+ahF7wVdJODxYQuhBSNgrYKH8dKwmiyAZaSb4gdMwL6SMiwCeJgB5PFfXSWymNTbKzVuEliO7oXVKfxelMST2B925XMHnJh3+pJ3sGuHSout0TLszVnKN85CFId25hfMOwvmsp/r0wIA== 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=vDeZiaxM56DM8bAa1Du53nD/Df/MbXDD5py+IU8jQUI=; b=TxSRtIfc8aoFJSxZ4CN67Bq4vt+jvALTqomO/zh1rGZTH7uOWEo6UeVObOvXcitFFriuRoepH+qXNozDxJEeDPxez4p6nOGK7gEAyq3cw0+/phxZBM97yzCRu4pc5j4HIPcPaTBsvReNETgNjaHIZl81kswsCJ+um0FHf8znCj0VtQw3pXWxoAjQQVVv420AxUfzbpJ2zu57lGKy3X+GASJwb9t/6TO59VYa6gSXie/DGw8zRGCvIZ/EjkskcwKt0SpAgxsu0ZEe6a95AP/6aqQRFuTbGIiFKbXTGhcq11Pl9U2wqxdIi5K4GvLymo3CEmE27EyN3ToopiLarQQT8Q== 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=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vDeZiaxM56DM8bAa1Du53nD/Df/MbXDD5py+IU8jQUI=; b=j2i6x71jvoebg7wpT5tMfLaiUTg/XsIEDWb2Di/4BpvWVvwpx0TVFlIg81isvxIAeUrZhnc8sxYBSgccWoAeHUPGzNR55lbrbUBtXmIptPoGnFxWHpdmGThNnzUrmNqDaftXEq99i44Vb07jQnPDYcrrAKrunXlR1mnZSNzdEn0PfIhn8GkaEAoQbHHZn/dCnSOJvnjiyvjA8ALPGOQaVdbtrKQBzSWX8oAzR5bryo5C32ftSEJdqUuOTafOtyHcfwblz0mD1oy6/SAFQ8oeumQP/ASpJ73wU1hig53lHD6gpzXM354TQ3XOYSvu3eEVp1Y5Yc/kVVaXKhVUQgKkDg== Received: from DB9PR09MB4986.eurprd09.prod.outlook.com (2603:10a6:10:2a9::19) by VI1PR09MB2269.eurprd09.prod.outlook.com (2603:10a6:803:7e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Sat, 4 Jun 2022 15:35:32 +0000 Received: from DB9PR09MB4986.eurprd09.prod.outlook.com ([fe80::50f9:b977:8f58:5653]) by DB9PR09MB4986.eurprd09.prod.outlook.com ([fe80::50f9:b977:8f58:5653%8]) with mapi id 15.20.5314.017; Sat, 4 Jun 2022 15:35:32 +0000 From: Arthur Miller To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Proposal: 'executable' org-capture-templaes References: <87mtf3tui1.fsf@localhost> <87pmjyco0x.fsf@localhost> <87fskrobiw.fsf@localhost> <87a6ay1enh.fsf@localhost> Date: Sat, 04 Jun 2022 17:35:30 +0200 In-Reply-To: <87a6ay1enh.fsf@localhost> (Ihor Radchenko's message of "Tue, 31 May 2022 12:58:58 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Content-Type: text/plain X-TMN: [EMMjGKBdOxh2hqcmfOmHB1uTuZY/NC2Z] X-ClientProxiedBy: BE0P281CA0019.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::6) To DB9PR09MB4986.eurprd09.prod.outlook.com (2603:10a6:10:2a9::19) X-Microsoft-Original-Message-ID: <87y1ycqw59.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ede6bca-1616-4f87-e116-08da463fdbf0 X-MS-TrafficTypeDiagnostic: VI1PR09MB2269:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VbLa+7Jy2bokMKOe95cX+ucCkZAhdEPHmKaMb8JijqqD9lR2JpwS8lElrGgVXAG0BaA8m6DefxbWyb27gzm2Gfum7MWXN0sZD0b+MfxiG6h0095/256DyxyWO45Fji+PogzFr8b8+ZlgHh5armvHrcmdTsMNQ9NsMSn0Sl6oIkDhCmpmSN1P84sIo9lEEpMmPzKlLehGjn84gmsESOdqOj5LGnC3uY9rnMCHP8hNcOahSXhHKjHlUCCzVQ0OHirKpoQb70TMGu5b639dsA2O0TzGdTdwcJ+PNunb4j/T145EgzjamUk9pzFyegR1jqcqgeNUfjbm82DhWFMLMMxWL2ELKCyLE1/U/b5/2FfTcfvqgeHVAhXtcU9LswlzS3RAwDOcFkluyb9vq4tNqiS6PdxHraY2IJLsnUil7JzJXWcWnjTWPKfGMwV48LAJ+9FFRTBSvV5UP7mk8q16ofYVZRW+d7irDjBj7L+2BKZkZ/QfyV2sACEpIZR0GOu0pX+rJPluYIzV/r1RxQb+uiPawjS8ifJpcU1AG8aBM5Ws4cJgGXq6FKWL72t78LdL5kJa6aEyAtaTImaJMKWh+oWEgw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?KpYuBDU2MpBr12uT77yM6lcB3AwtG4+/uKRF2pRHpJXizBQge1WROe7Hh4em?= =?us-ascii?Q?uRXE+6tVnvhBmwpP2Hl38oTUpIDOWbOb9U1cHi1N4dxzIKfkUkqvPaTeySOh?= =?us-ascii?Q?/f/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Mbp2XXF0ckwUyTl?= =?us-ascii?Q?wL1jXp9AigU7AOZP+Yl5qdv9HPgb4sOP92ULfYUFiil1GLLgEB8XbKpPH6wZ?= =?us-ascii?Q?A6yr5sSS6X2MYLoizDR3FTwNfv0y36c7K+zrhrjk3u3iykJ1MtRTypX+SefE?= =?us-ascii?Q?9/khFZ+emNGEj4WL/YpH8a47gH8JfNE4Y5n5+GkG2jFzDAy6Y1pOMNKtiHuM?= =?us-ascii?Q?3BUdq2IpyR0susapk9ksJLhUgln1T/DLM7HdOGDNuN6ujqXgUw6BdeqINoeX?= =?us-ascii?Q?OXs9Y2yxvItw+n8NdhLhIUJbs25OKEd2a1sosaDmMzscAo0R3Fe7wFxYerde?= =?us-ascii?Q?W5Wy3Z48rPVfQHNN2KgxhOXvhk7C7lAyHI6CSRtjxuugBIHxE91zDg7dampw?= =?us-ascii?Q?OrF7Kh12R2JdyimknqY3lCEXL/eP7EDTbvq2NdxBwOpR9BYGfApJGknuXZB9?= =?us-ascii?Q?p8znrQwPMgU=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 4ede6bca-1616-4f87-e116-08da463fdbf0 X-MS-Exchange-CrossTenant-AuthSource: DB9PR09MB4986.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2022 15:35:31.9475 (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: VI1PR09MB2269 Received-SPF: pass client-ip=2a01:111:f400:fe09::820; envelope-from=arthur.miller@live.com; helo=EUR03-VE1-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, 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654357281; 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=vDeZiaxM56DM8bAa1Du53nD/Df/MbXDD5py+IU8jQUI=; b=GBqHc0RrWOYPOqABfuNFakQ6T9hbTgKZt44mOeq1ZbrZ0x/4dKyHwZFOelijNuJSD+VRNs lQxCAhDvqeiy1G4uU3mryTWmwsSDfXVkzSKoaUGX1cwuWWKEAmW9hiaCWZ+3REJn3jgb7H 9EGtBmORh5DLMGH+LlymVQnQc9bq/rRHPEId7G+muyEtQjjaLlu8+SS4RBDA1XurZHbpBG OOkPIPQlh9/i8cBP5XtcRL9O4prR+34eASzCKeKlGrq34ei7zhAu88rRpaENp+jBSFEq/u J57YM85wIUU5YRXdbIdXiaF24n9S0laKlGNkeA0fByCcUk/1MnnfxZ2QwEbZNA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1654357281; a=rsa-sha256; cv=pass; b=W4Y8fQfiNMuodhbWpjN+Ebl32PJZXKE6OyB8fZrvslK8okK1/c8xDi6eToeS0BViqMlwe5 8vbFwfaUN+JAQnQ1uSgv+MHrJ1K9Z/ypHNJqDzLWqH5PZ5OzBGuroU58RCyid5/s2Sgmuu zd4+6FSwZ5duvJfjJV6Ar/4aYDL9FcWU2GstIwR0fiHi0zIYpWTSuCt0sJKsKlEjwGTx7o NMgU31ZUXIBQaVLRBshM5WRTYnqPHVt5gHkrefa4Fvbb4pG3czDytgnSEM4VPQa8n2gXch 34Fh3Y/4vS+QaDJcttGTjjAOS5qroWOcRr+d88vmsnb0DoMbPklZ9WgWUXNn+w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=j2i6x71j; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.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.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=j2i6x71j; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.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: 3E70B3B97C X-Spam-Score: -5.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4Ig9dmsFjHdT Ihor Radchenko writes: >>> The above statement is a hint that patches are welcome :) >> >> As said, I am not that well familiar with org in-depth, and with other places >> that might need to be factored out, so I don't promise anything. Initially I >> just got a quick idea while working on a project of mine with org-capture, and >> hacked the 'org-capture' function to implement my idea :). > > Feel free at ask anything if you encounter difficulties. It is not > always trivial to convert something that works for you personally into > something suitable for all the people using Org. Hello again; I have been playing with this, and so far the biggest problem is that I get too many ideas as longer I refactor the existing code :). However, I have a question: would it be acceptable for org-capture to change the input model? I have implemented more flexible replacement for org-mks, and refactored it out of org-mode under new nick 'quick-menu' to indicate that it does not pull any of org mode with it. I have one implementation based on "read-key" function from org-macs and used in original org-mks. A proptotype works, but I am not done completely. However before I continue, I am thinking of ditching the 'read-key' completely and switching to "standard" Emacs way of implementing interactivity via mode and mode-map. I am currently playing with such implementation, which to me appears both simpler (code reduction) and more flexible, but it does change the mental model of how clients of org-mks are used, for example org-capture. I don't think it should be a deal-breaker, but that is my personal opinion, so I would like to hear if that change would be acceptable or not?