From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KA1uEZUnpGL1FQAAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 07:26:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uLN+EJUnpGLhGAEAG6o9tA (envelope-from ) for ; Sat, 11 Jun 2022 07:26:45 +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 E43112E455 for ; Sat, 11 Jun 2022 07:26:44 +0200 (CEST) Received: from localhost ([::1]:51292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nztdz-0001S8-8D for larch@yhetil.org; Sat, 11 Jun 2022 01:26:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nztd4-0001Rz-Ot for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 01:25:46 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:46908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nztd0-0005sj-8d for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 01:25:43 -0400 Received: by mail-pl1-x630.google.com with SMTP id d13so866983plh.13 for ; Fri, 10 Jun 2022 22:25:41 -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=YPbWjOzCcnZpDITpvY1gC3qYqYVVQFA28VSvZK6xkGM=; b=b3uP8QXVLAwbd8KStQnxtPCdwYWmnhp99C62E1lQpn+ZV7W3T8jIelIpFELM+OZZN8 10zSqX6Xkt8dEVU2FypHCrDfUUhWcR9XamOpi994TFkd+q9o+E6ppiE6Kw8dOYNq/459 3RxKBvinmQho0m79hnbZZ7pEk25nC51OIyxILaKGKcE8fKJtkecxfN2ok9d7MAhOiKIE H8a/vZ+IZTCOIlwdzd2O+rMHsog9GEmJ5Ik2C9dDQpsEYVNJYJMvMQTeuGyvBuNA5hvr BlMmh2soPQ/reD5crsU0HZhqQzp1JJL1jtYK8PP/Ujw7yT/XOylbTOHsmq92FYJD5uaS fb6w== 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=YPbWjOzCcnZpDITpvY1gC3qYqYVVQFA28VSvZK6xkGM=; b=0TVV7cBsVMOjAV22AuUJP6JYe9NwEvHib04mFP59d+xp2lhPmGeXL7Exak3JbCRgHE XFOeF0ncHe5b/FdR8RD2f6A3CDSOD09OJYZLq9qt4Kya36MPwgaF5t1zeskslF5iUNAE YdVheWPM5XCtVoiXHXN+IMn2Ske0EcQnyrwrk6zoBUDj2AH4TQMqeeqXr2DA/jGVJZOt aX+2CmRMKICZfSjtg0bxtIm3DdnO7fBZOW5k/j9NHCUopV7bQDjBe38VJm1a3vURUhck /3h5e+/cOSodsnadX6xyc1UFQMji3Gz7sZLhmhCaWMSN/ybi4fzS5s0bzs8QzhRXouOW Wj0g== X-Gm-Message-State: AOAM532us79yZqYVi8bK+9fHDMyrDOU1FC0OMyFYOlP7sO7ONN4IKUPQ vtWnro6vFXP/STO/KR80wuw= X-Google-Smtp-Source: ABdhPJz5jUJ4qpik0eYOO9v/yyxyqHRY0fDBvYO/2uZ6rsnhjp0vV4JznKN8AMMDpsTZUgG7zn6oCQ== X-Received: by 2002:a17:902:aa4b:b0:15f:b2c:73c7 with SMTP id c11-20020a170902aa4b00b0015f0b2c73c7mr47956224plr.164.1654925140801; Fri, 10 Jun 2022 22:25:40 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b001677fa34a4fsm655561plk.72.2022.06.10.22.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 22:25:40 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin 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: Sat, 11 Jun 2022 13:26:19 +0800 Message-ID: <87edzvdb44.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=yantar92@gmail.com; helo=mail-pl1-x630.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=1654925204; 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=YPbWjOzCcnZpDITpvY1gC3qYqYVVQFA28VSvZK6xkGM=; b=Lpeedg0vrOYiG4KuMkJRYsaF9AKohlFjZQkVnmBPus49eHkiECuEc/E4NJHb/Hro/y4QD9 pvtVmpQ3Bsmo+N04jXDpfufT8TtjCgcxg5VosEgouCXvllie3Sx62oyzzuDQD4Zhd+2bBe CjiDHbI/XZOW5LL9tqJszxQFk1iMpoKbBdCkiXFsLLUrrZxyVtruqQD7h7heyvoLg+/XkR EcZQtd7g+S57jaeY6YyhU+0blSMudR0j3LLRxs2qYclcj5GHjUKCT4X+UVwkEyqIO99qRb icdKinsUCe2X53A9QeRLohu9XaVb6n6SOassB0/R/FcezLsy7ZY+rBnpRShiug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654925204; a=rsa-sha256; cv=none; b=a0bCbsobuhEbkw68sqbFZeErosaC1SUwK51fhylLlVrG8/Fnm28Mw193UXD1Jze1CjFJqE wzPxU2t/2gZihfImD7nL5H2cb+/Ku4nKUC4TigNHZNtrk0WixZcnlH/UlRXBgnx+MAmOmP cToFSchDegWZAWfrU7bpiLVNEryqBE+6ECJVX/URi6XNtzH2G5OA9qZigjuNXE5IRQ65US gk0j2M4VaVO/SXgjqDCKTp9XZP4R1stFR6Mh/x7E7POWk7YGn7PEX00sI3upxgggrp4lnQ 373nGcuMVySCzuF3xiS8IrBde0DjfHpeLXzMnYh+/ftmge9IR7euvu2oJvhAiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=b3uP8QXV; 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: -8.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=b3uP8QXV; 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: E43112E455 X-Spam-Score: -8.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZfXvFuw10buw Max Nikulin writes: >> so are we talking about menus then? is there truly a need to make >> /menu state/ persistent or yakshaveable? > > As soon as capture template is chosen, content is landed to the target > file and may be autosaved. I do not expect problems here. > > However if two org-protocol handlers are launched without specified > template then behavior of Org becomes confusing. I meant this case. > Currently reading key from minibuffer serves as a kind of > synchronization tool. > > Imagine what would happen if Emacs decided to show several capture menus > with keymap non-blocking interface in different virtual desktops. > Capture data should be saved somewhere till the user would discover > initially hidden menu. Note that there is not much happening when capture menu is called. Only the link is stored into link ting. Otherwise, no capture data is altered. All the fragile staff is happening after selecting capture template. Best, Ihor