From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 GLPvHHHzm2L5owAAbAwnHQ (envelope-from ) for ; Sun, 05 Jun 2022 02:06:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oB/2HHHzm2K5XQAA9RJhRA (envelope-from ) for ; Sun, 05 Jun 2022 02:06:09 +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 2472487BD for ; Sun, 5 Jun 2022 02:06:08 +0200 (CEST) Received: from localhost ([::1]:40884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxdmQ-0002wE-QS for larch@yhetil.org; Sat, 04 Jun 2022 20:06:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxdkg-0002w5-C0 for emacs-orgmode@gnu.org; Sat, 04 Jun 2022 20:04:18 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:36505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxdke-0003GF-Dw for emacs-orgmode@gnu.org; Sat, 04 Jun 2022 20:04:17 -0400 Received: by mail-pl1-x62c.google.com with SMTP id u18so9491475plb.3 for ; Sat, 04 Jun 2022 17:04:14 -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=6duvYc8rLN4k9IDeYaQtt6kJEimTQJVoRyHv24+mgXw=; b=NxNPBDo8FTxgKovX28xOUJ2EHx3oTx+9SBHlVzRyaBD5ioUBfNBqFweuWS/n2zxjTW ZrozH+iHqOaQ4aAahQxe0tmPgH1nmy6xrg6sJwD86lUSCPlVoEdmajVUO7zMWrbcQpFs 0oGdA4VoR8azrnNygZqKav0JEeoQ4BL4eqcIr/sUvWGTgho1zutwOt4QoeMgmbnDqqCM Fg9SABwF5Qlaw8Hk4csSFyCW1qg5c+FfIlmUr2oKA59nd4+MF/4aJNeh/9WlXYKux0GH wZLLbnewfE0L2CD0yH6f9Uo+q1FW9soJAcoe4DvpG0kMG++yGzfue8e/6q/RROHgegT2 juoA== 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=6duvYc8rLN4k9IDeYaQtt6kJEimTQJVoRyHv24+mgXw=; b=z8jHvGDv8p5Y2t+U6YKJjChapxHbbSC9v36LT7RMvYBF9M/g2PNXKkc4hH7Rx4RLXD myhDVYa3sfj2Y28JX0o+c9kzDr3f5X6T/nO5Z1s7gyJVFxz67VrwcSv/5gRrF2eQGD7s Wycu4SkZqUqLMg8BKaNPXQNPdRogXc6mqAFLvjIoLXAgr8FWzXlOvkZuqEODp7yp+0GP AabxBH+Y69oaX+AiOsZZ443eOuLt/mBiiqVsJ4qYDO7LK39ezTZDfuaXpNOfwy3JCE7C 1TRsmFU8c/mwSS4dPizHI2SOI7V01XVAsFKo2T2ueyz0YuGo4gnvST0PH2SAKCm+QyA5 0mDQ== X-Gm-Message-State: AOAM533HrHcwWGLj8AuFKFEcCWkjpL31US0jTa0+jqksiT8mHqy3XXuB 8nc04f5vUfrXi8T0bFdC/XE= X-Google-Smtp-Source: ABdhPJxQvc/C8Pb+6g5KkEnLkoZDYuBQSgcHXFb9IdrwlRDXeKUprV7ApMJq+rKDpP0DKERT/vIm8w== X-Received: by 2002:a17:902:7083:b0:167:6549:48e9 with SMTP id z3-20020a170902708300b00167654948e9mr4233873plk.118.1654387453623; Sat, 04 Jun 2022 17:04:13 -0700 (PDT) Received: from localhost ([210.3.160.226]) by smtp.gmail.com with ESMTPSA id c11-20020a170903234b00b001641047544bsm7783007plh.103.2022.06.04.17.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jun 2022 17:04:13 -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> Date: Sun, 05 Jun 2022 08:04:50 +0800 Message-ID: <87zgisvuu5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62c.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=1654387568; 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=6duvYc8rLN4k9IDeYaQtt6kJEimTQJVoRyHv24+mgXw=; b=a3P+/j0YYl/BUUOotcuuuhBhSD6K+VahhDAyC3l/QD19AWhnfsLpO/h3n3WKk5FkHd0T6E OTg9QtDuQohRfETeY1DYSbzo+6WEHF7kyKq6enHJlVYCJJEz8YkeSId4taoN/rmuIgIDt9 1DhvbYo3u9IKUu/vGPr6emzL9fwQYuFw2nMYacsj5so+6J4pKNQSrz+CO9CpKR5IjEcIch 22c0JHsNViu6N3n3VtQ9yK+fQQI6aWZunN8++9tGvbfKvod0fNyLy/A3cuaq/mVHalh1wo uZ1y/kGGj1WCGHm1styaThVj38ULqltCqRC2qWKOiM+IIIuT456qkn0nMtys+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654387568; a=rsa-sha256; cv=none; b=bjnpe7yFGri8YSMpirsPKTXTjXAQAcelefqZGzZGLkDcGo+hSlyyMBeH4e1Eq4CdEHLJPd cQCeiqf+kWLEbfFGIJcySo9BAnd0dtl69X5B+vxBOFNABrQrt6Z2SIwrdzjkUfw3yP8srP IDo7FEvzEFcLxIrs2NwbU7ic9SJiWRewapDo3ysDpMbWE8yzCRBW0A5jJ8laRkdHFacZuy 5qqNgjMbbia4dBcEVlzmV4LF9OhEdD0ugvGJzdu5mf/+mtSvAsJkCadKLGZA5dq2ywRNCg ZEewAXoh3z7oj1hb7lnW30mUkdkUw9L5Q/YgLl7za+4YU7c3oChmYmYMPQaLhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NxNPBDo8; 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: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NxNPBDo8; 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: 2472487BD X-Spam-Score: -2.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: FImx7IPsMbZ6 Arthur Miller writes: > 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. This sounds promising. > 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? Best, Ihor