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 ms5.migadu.com with LMTPS id KDEhCPbInGJ5oQAAbAwnHQ (envelope-from ) for ; Sun, 05 Jun 2022 17:17:10 +0200 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 UM34B/bInGLHjAAAauVa8A (envelope-from ) for ; Sun, 05 Jun 2022 17:17:10 +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 A82313A40F for ; Sun, 5 Jun 2022 17:17:08 +0200 (CEST) Received: from localhost ([::1]:43296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxs03-0005jA-R3 for larch@yhetil.org; Sun, 05 Jun 2022 11:17:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxrz8-0005gw-Ff for emacs-orgmode@gnu.org; Sun, 05 Jun 2022 11:16:10 -0400 Received: from mail-oln040092070105.outbound.protection.outlook.com ([40.92.70.105]:31235 helo=EUR03-AM5-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 1nxrz4-0000zd-4j for emacs-orgmode@gnu.org; Sun, 05 Jun 2022 11:16:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ar2Nvv8Kfi3Z9rICvqa0q9QKWkvdDIi35QxQIzjahUzbidiPvEPB/yotXENb6pO+wwyqBommzwcs9wZN1lJaAQOCkpo1dJAoOBGN83mh5H/MviEk2EuGgJNcIsacr3a+06YhBONnhsyCAIlLYuunv49vw9h3b5aM5ySZJBALs2KZcaROcZNLT7/KO3gnOsuZ404xf6W3g/Wie9MybI6jgoT1qPW0g0it1C88Al5gyEppp434Qog5ZWwmKhPESkiXJFgyNRIcBkPck737U9NJr2fi7+0Xs7iWuSRRykvtICnT6tixPrgq+AAS5pdTeS46J1sIWlP4T1eab1AwX8FydQ== 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=8aXmRYxSwJNJa4qjmeC9vQRp5IQxIzXFeIiqFGcuOgs=; b=LcvgJWmlFDm0lP7JJ4o+qyiDPjymxUcWjXTUnk7NdxXwETAxo9EDwITDzFSyyr7qoQsKQ5+3jfDCtfIEDWdd9k9swf0GEoDPb+wBsO2VbX+3aLm5TvJSfgz6vS1Yt8boErr2CE4+9gsYMPA7oRRZ4zVxXyr/FuqIIwlSv2M71YQwLgWJsImyZJDJkwnUGpd1UFkbiEkVVEn7Lbzz0U3RT6hOa7xof6X8DIjwkhxX0ds84Alt4upFEpPgpIGzjOx9vSQ7vUTvYpkU3Y/5KMhto/8GP8KyzO+nJgo3DxfCGOV1WGP9GMSOcjCIxwoe0gTb3cR3NwOmo08NGRncyZqNpA== 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=8aXmRYxSwJNJa4qjmeC9vQRp5IQxIzXFeIiqFGcuOgs=; b=re1jJJwLhIw+1lcnqsfqPQVRihfA01H00+VnFMfDVaXNKDZg0xHTvkL/tTE0VwrB7Y9UHIF3rYNzQBLKP5xmKyMQoPr+Rr9XO5DEbXPHpOFV+dCUPgXEPpNGMvTtiw6jqvjujVNG6PWqrliy/JMDeL9wLyhbzxHGQXRGRnmRS5U/vw+1nDeZdUqU0LBxsXvOAcgo9CcKgMgVKNXhQnjdqj/d4dR7aI9bcKhQVAGJudJUj0Hkm42svNZaCgZT0GJsIZxAIoKIn8O6bt1j6BeJyIAxvCsdOu65HuYWiRN4ngeDLuOzpA/z1vi1UXTZkQ5nqEH/07k27QB1lsrR1Ku37w== Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM6PR09MB2728.eurprd09.prod.outlook.com (2603:10a6:20b:a1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Sun, 5 Jun 2022 15:16:03 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::48c7:3657:142f:a842]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::48c7:3657:142f:a842%4]) with mapi id 15.20.5314.019; Sun, 5 Jun 2022 15:16:03 +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> <87zgisvuu5.fsf@localhost> Date: Sun, 05 Jun 2022 17:16:01 +0200 In-Reply-To: <87zgisvuu5.fsf@localhost> (Ihor Radchenko's message of "Sun, 05 Jun 2022 08:04:50 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Content-Type: text/plain X-TMN: [Xncxe5FAH2gslpImhSiXY2zmgIYb9n2I] X-ClientProxiedBy: CWLP265CA0513.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18c::8) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87fskjw37y.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67d27ef3-5c53-41ee-934f-08da47064e06 X-MS-TrafficTypeDiagnostic: AM6PR09MB2728:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AP+FiA34M3MzCyIriK+xGVej5Gb4gEkLACRSTvZ8lCVKXU87UBKuXpIudOxzsayG87Oafp93ud/rIEAcLxLNCbfB/ylyA0ZxXsoqAQucVWSyycpHKcosVGKQ3tvQ8L6Fy0sygD5kvrgQq8VA5jMVMmNnPmAcJGj5UIIXOdoW8tit5UtLw8+utC2YPOY53Ob/iPz2b3kJnBfV8P9a1phE0kY6Cu+lBRqSXbdDeLo4UoACd8iJbw+ErvftSqqGwowS3IYi3ERIHhJTpTZSodnmsg4NMrd1G5J6OMQeNp37pW/AZiz0yDTHsdqSgevpfWbq5AbMS8zBIoRROFeYWkCA9bT6nkZ+iLNxVsWFxicnyFbsPZFAREkBqrAU5oNwkTG06CBqLWNRRtv+rE5bQMuvZYBt3X5bQYGZj1HKfuQWNRUCFl/qsa2LvsyFnaiRjMkp+831rFu3yFYaVgTqcNAAyAM1YpcHjSdsmFTD+ZrUUp8BFUCMpcWeoNvP48b3gAHx92re+ImyH7dzCyIi2YPj+E3kAyEjMKTiOH0fZLY1LT7K4ldFdZC9kzFZvd/N7pQOQW+VoFItyVX7FGFElFESig== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YBjiun9X07NRz2qMgvRinmYVR7JXk3t2UfKSR8OHDphravHZTap1w/cswUQS?= =?us-ascii?Q?666mbaL6ZYiIGlrr/J3ZpnsUV+VGnZWx/uiBrO04o2aOelSzRNz6sTtD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XZkcHU8xiaxM+1EntUXjB2amUgRa0qTuVDqL?= =?us-ascii?Q?3R4XoLjFf2PUp3uAHbiI7DIsh0V+5hPo1z6NeIKyvq0i4wCMQoqjum7o+zH+?= =?us-ascii?Q?M/gieRpBSS9sPZQ+lgOn7Ytvk2+hTpvEG7NI0nb9UC/Tojdjc/7L0bTw/ZNU?= =?us-ascii?Q?K3N1R7ZverBhMWsqdtNyNkqR9kUiuRIZMOva3FytAlW3KNlwnZR7Vbw87yTz?= =?us-ascii?Q?H+aZbMEsIzNnlloxc8XhTDIMnuJ56KPXtwIlrA6LfktcKCr1BOP3mkvLyWqT?= =?us-ascii?Q?NRBnriRfGgef5VMyew67ABFggktfP1lsOaXUhLUJuXkyzeevlHQiApHrNFtx?= =?us-ascii?Q?vE+nXbFBnKW+RAjqOTq6wauu+HvCj+MmBcllyi6L2lfFoRvjyVFhgm1oa0uY?= =?us-ascii?Q?LqHg5x0jlSxeH5GhsX4/Go2WT+M7zTOFkD3JMpPvrjPRXsWX3ukbhhEnN/sC?= =?us-ascii?Q?eX/uf52NTcU=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 67d27ef3-5c53-41ee-934f-08da47064e06 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2022 15:16:03.3431 (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: AM6PR09MB2728 Received-SPF: pass client-ip=40.92.70.105; envelope-from=arthur.miller@live.com; helo=EUR03-AM5-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, 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=1654442228; 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=8aXmRYxSwJNJa4qjmeC9vQRp5IQxIzXFeIiqFGcuOgs=; b=eXj3wVG086thnpGQuavK/1Xj70O5iBB/CrbxicQp3y45GPgmsaHWSwA0bkJ52DsiShUkTm GCpIS5oMw2U9Q+R9uQl6bRWd/oJgEnRxgynMJKqizrwXxJU1+i38U7F1fX+p+AHEqpRKle EqPgIdDdJyCehTNpPaYT+isMvWk5pwQqcuWY93L79PGsOQ3D+9AvhrxA0U4NdoVMGbfHRk UeHgXDWzGHPMxfGKS5qSh2611sruZ+S7dIUXC0obGqDzAEem0f7QIqZUsRE2ROxYTUsMcS HCtVt8H8dGJcxL66ilbVi9HSIQdkyokhnm6YywqlFtVqLiT6E1E0TYX93wNi7w== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1654442228; a=rsa-sha256; cv=pass; b=ELXqwIsR68bLC0A/T5lpRRH391lgYfcIGPTJ6nfP5T1uosYNsVatAeU3NJ6sFoNRDnFpmI 6yDnoz2qbosKFU9fERBVSRk1QLAouFtYVQp7nmwakaFJ+PpgbuJU5yBhS+WU4+Bgr7VtX4 wfbgfy8O0NBBNFl0tbEtiUEgpMRbnN0XAe70+Hrp/Zu9r+cwkvMgv+HXAUTe0ZmS4Puyqr vZ7U3cjAosxBKYg1IukQysf2iMWRlxUmyj5X6vci3nyA3cQ/AbkndgN8w1qQABGRGcBgSj 3KXOM6oK+vtGjCU8uLJEo+BSDE3U5XA5m4auVC7h8Z+KaDLCCpqShNDbySvQcg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=re1jJJwL; 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.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=re1jJJwL; 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: A82313A40F X-Spam-Score: -5.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: XgX1AgW8WdcC Ihor Radchenko writes: > Arthur Miller writes: > >> 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? > > Could you provide a bit more details? How exactly will the usage differ > from read-key? I just wrote a much more detailed descrpition of what I have done so far, and some dificulties I have to solve before I continue, and some discussion of how it might work in answer to Mikulins question and concerns. Short here: it will be ordinary text buffer, read only of course, with its own major mode derived from special mode and buffer local key maps, instead of major mode global maps, so user can just press a key in the buffer itself instead of being prompted. Single task workflow, I believe, can be guaranteed by allowing only one menu buffer per application, for example one org-capture menu at a time, but multiple applications could work since they will have different named buffers. This is a suggestions. I really dislike the read-key implementation of org-mks, I don't think it is very easy to hack it in order to extend it, but I don't know if it is possible to block Emacs when using ordinary key map mechanism. If someone knows how to do it, I am all ears :). Hope it explains a bit. Thanks for the help!