From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 WCkmHNCWoGKd8QAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 14:32:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IJE4G9CWoGLKHAAAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 14:32:16 +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 090A62A778 for ; Wed, 8 Jun 2022 14:32:16 +0200 (CEST) Received: from localhost ([::1]:52032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyur8-0007ci-Ng for larch@yhetil.org; Wed, 08 Jun 2022 08:32:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyuio-0002cw-N2 for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 08:23:38 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:35533) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyuim-0004Gl-QR for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 08:23:38 -0400 Received: by mail-pl1-x62a.google.com with SMTP id o6so12417893plg.2 for ; Wed, 08 Jun 2022 05:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=jV6vPXqtoGo87DT53JOSbxgCjso7BkRQDOwmYyTqZco=; b=LTO2+UEUcZM4AFXeZmHKRY1yOybnO9KLD9/tiFDV5/7kkDaJwPKuun6B0Wkp31q+dR bKdmnqMMRdOiVjAx+SBHsPlM/4igY5FmzvNBGgi+vXuXj7M/cJJeI9Uh0/HoAfiOekAN 2PHdv9CuWPV0+8FbsOYb0phFa0J9gY0Xw/9ZphWHy9uNNCrQAZG70hHpvlT5Y2CW6e95 Cpb4nvMR3kr2N65VNCn7sbQvwa0JUpBg0/CrFXXQ0b6wDAFRMg0h6oWHbZ5Kdu3gFtDa iLPX4Cd+2QHCWKcYX4bCJThCKzTRSq6yBpyYee515SIJbaBdMrxLaVFLeWRSWT4c36vN SJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=jV6vPXqtoGo87DT53JOSbxgCjso7BkRQDOwmYyTqZco=; b=6VvjNzVkC+W53zHQMKlEf/C+KxDzpRzejx7uDNud8BlwUBA/rx92Ub4AeScWvck7q3 XjcX6Hylt5z/JWJPskvFqRjAxnXSGC4b+0ObNxIcWcVpS9AtOY65C1rpuFwiFhUt4+Ec xQWyCLBTnVF+nQHKldD6d9EE3YSoXBRyFLLSbO4SP0yEc+x1WmolORFA1RbBfAb1YZ7i GrAO3T+FHzVCeRfJmrGO0r1cwFu6tScMoaxlpxprZMSdSEByRuZyOP1yZoFKEK7T6T/2 aMGihC52+Mbg0zmVsrhpzPsIf3kMgExiBY/zfeN+fXlYbibNhZymFPaZYU4tgd2onRgP yhZA== X-Gm-Message-State: AOAM531odoTjFIDv3vW4vl6rStaeDfrcQ2urCe+u1A69azy7wQQCztUL Ej2K/YrqC4txyzbllBXGF3k= X-Google-Smtp-Source: ABdhPJwsK0KXyvyI+ti04l5veMAbiVcTi+ozqvnAoJ3R+/x12wDDgeyYcOkwS9vZs5GhAzEB0RloQw== X-Received: by 2002:a17:902:d54d:b0:165:13ac:7d60 with SMTP id z13-20020a170902d54d00b0016513ac7d60mr33904433plf.2.1654691015326; Wed, 08 Jun 2022 05:23:35 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id y188-20020a6232c5000000b0051bb79437f7sm14753755pfy.37.2022.06.08.05.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:23:34 -0700 (PDT) From: Ihor Radchenko To: Arthur Miller Cc: emacs-orgmode@gnu.org Subject: Re: Proposal: 'executable' org-capture-templaes In-Reply-To: References: <87mtf3tui1.fsf@localhost> <87pmjyco0x.fsf@localhost> <87fskrobiw.fsf@localhost> <87a6ay1enh.fsf@localhost> <87zgisvuu5.fsf@localhost> Date: Wed, 08 Jun 2022 20:24:13 +0800 Message-ID: <87o7z3s5qq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654691536; 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=jV6vPXqtoGo87DT53JOSbxgCjso7BkRQDOwmYyTqZco=; b=dGg5SsQHKqjVmpj/junZvY/1582Yw4VC2tzHxzfMPc+7ndJFs5LBCn1G1w2+bvQGgDVpwY fr48vRINHs/ckWjH91SZWX6i4Onto/WJ28v7JrCGnV6aoMPvF9jheQd2ERrPz5xBGr7or2 OgP3V1JyZBaMt2KW1HyoQIbO8lbBRPoUnwsJUhbik9v6axwcCJqGOWmbhHRgvoJMNpGDpj zK0yx4hwGrd/siJvs5KqDSbt9SJO+8C049vj26gljtRcGLDeOxAXvJsBwmnn3+SMs2izY5 EaWDvj/FtoaV72LUtKv9cXAwpA3oA0eXyYeQoRbwsnQ4uNQZLw0aQi934R2oyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654691536; a=rsa-sha256; cv=none; b=sHL/aoMHFZr3JXC4KTixoC5zK6eZtyj+EpBjHJEh1FY1NJTOzpiephDMmWTspeFp8fvctX z0+wlHG4X4Od9b1hkYOZTSeLUrHcfO9HPUYb+N+9TJtTxblcFg+PDWFv/sPQ4ZhxsSU4q2 BUFvo6gT6IGjdcRYth82fp7YbdRNP7R1hwWTtGxyEWOkN0ctxlX0LJTudrFd6I4mMjKegP jeF8S/xcOsZk9vrvF0ESxUj1E6l6JrxIHNln/l8yiBCa+VrYHJ6b1lr1hX+RbZoOjYXexE OfhZn83qcCVc361mF32uCgSMsGnczt8nAf6aUr//X41EkCj7xe7tdvP2VFOzqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LTO2+UEU; dmarc=pass (policy=none) header.from=gmail.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: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LTO2+UEU; dmarc=pass (policy=none) header.from=gmail.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: 090A62A778 X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5RWhTLNaQdAw Arthur Miller writes: >> Could you provide a bit more details? How exactly will the usage differ >> from read-key? > > 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. Sounds reasonable. > 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. Again, reasonable. Though I did not see how it is possible in your demo. > 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 :). There were other people who really dislike read-key implementation. Notably Jean Louis and Eduardo Ochs. A kind of hack you are asking for can be binding every other key to function that aborts the menu. It will not restrict users, say, from creating another frame. But otherwise it will pretty much work like read-key. Best, Ihor