From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 0NyYAO5DsWLtegAAbAwnHQ (envelope-from ) for ; Tue, 21 Jun 2022 06:07: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 mp11.migadu.com with LMTPS id YJaLAO5DsWLQXAAA9RJhRA (envelope-from ) for ; Tue, 21 Jun 2022 06:07: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 7E43510D1C for ; Tue, 21 Jun 2022 06:07:09 +0200 (CEST) Received: from localhost ([::1]:42402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3VAS-00041U-Kd for larch@yhetil.org; Tue, 21 Jun 2022 00:07:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3V9r-000419-02 for emacs-orgmode@gnu.org; Tue, 21 Jun 2022 00:06:31 -0400 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]:43897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3V9o-0007A4-Vj for emacs-orgmode@gnu.org; Tue, 21 Jun 2022 00:06:30 -0400 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-fe023ab520so16843744fac.10 for ; Mon, 20 Jun 2022 21:06:28 -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=CvfgcyT52Li9PP/vfGA+ZC4+4SyRkY6Gr8Y653oAJzw=; b=hFhzOynFyEQjqJyRIUxWnOn/Yu3yZ/Swyq514W4w6NwC45DqfaJ3+Cf/z46E0Z7jiH 1d2CMjFBDeQYq3SCCrjPrLedMKZxAnKD09KqlUnwVs8s8EJDBW763qSJutIgGB7yrNWi zykH6oxbc49DBTZ45qqEfCpk/LSNe+/ns5pc2+/ZCoS3AXYrbDPwc5sTMnOql+AmsFmy TyzNGrDA3MYOto7iJJpmvKpQb2bLuIG9tv8DYMAHGNAw/1X+Ts9vu5xhWlnJb1F4gFZW 7AV4kilk60mG134UT1M8kol1AIDPnahp/xVaUBzotz9dOzpkf0kbdlK7kxsa5mn5gGGg 6MfQ== 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=CvfgcyT52Li9PP/vfGA+ZC4+4SyRkY6Gr8Y653oAJzw=; b=PULGh86fjEbR3cwPS3tvqDtbMim8w8fpdJSkW04gk2+1TxRUjMKPhYSxn4BpVFzP26 ej8Dk/TSDAX8x98Wc0p/J0L634b+aZXateE3pB6GLgc9KWdyOU3KcGXVgCZLHtOf6qV5 ZMPxh831Wcq3VdYFOtmXRUnSw5wUIHFef5UAEvVxi3d4VbC6wGV0Rd6BKtS/GRejZKz0 21CtfVSUR1CtcQKgYZuhXdU2J4AKl2my35r+ExJAC2CTRNAvB1cVD4v0o7CpaHa5VfZ5 fk49a1YuK3KSaLqL3XFPNZBA40cA1iyglwqe1eLurFYVZGRCMm+M8uD7znZOFv+0GPpd sfug== X-Gm-Message-State: AJIora9MnfkC/vnIM4aiZNMxRqQux1rVakv5mTkgTVny7OwdJxtDqodx 5sUmP4Q6vVwRm+0A+TVMGwE= X-Google-Smtp-Source: AGRyM1vaxb69vdTZs1WMKh0JRRvDPFpU1Px2xKtSf2C11DsbzhuFNKqwz+dN6ZhMDIroSnWziPzLiA== X-Received: by 2002:a05:6870:b617:b0:f5:d766:1b70 with SMTP id cm23-20020a056870b61700b000f5d7661b70mr21010084oab.80.1655784387737; Mon, 20 Jun 2022 21:06:27 -0700 (PDT) Received: from localhost ([207.126.88.10]) by smtp.gmail.com with ESMTPSA id v5-20020a05687105c500b001010307ef04sm7219715oan.33.2022.06.20.21.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 21:06:27 -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> <87edzvdb44.fsf@localhost> <878rpu5qf4.fsf@localhost> <87zgi7357y.fsf@localhost> Date: Tue, 21 Jun 2022 12:07:38 +0800 Message-ID: <875ykuslpx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=yantar92@gmail.com; helo=mail-oa1-x2c.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=1655784429; 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=CvfgcyT52Li9PP/vfGA+ZC4+4SyRkY6Gr8Y653oAJzw=; b=jBM9ejiJOTom5dUOC6MmIe6B1LffplemEFE/XFYK73QuEyAaabVDOenJgBixIIAfUXNA28 79dpAvn15kAWwwIduHUeUGAKLsP9+D00QUsWYp0dlNcLrXiJ39s3X0Yr7XsOxVfbulclu2 rKJsAJ66yeCsYoaztrQhLcZ2tOODsQFRiajX7/xhCvHPI/iGHiGue1FxHW3BpVcj0xaR0N KjyGh+LZiV3Ahio09iASSxOgZQ/ZDjMt8Inl19uEIM9NyJ0OcQovBDVTbHRjvjIK7ADxLw rtRlE4fTjIFMzUadaP94RYC1Vc+srh44uvRckzIoh1fDtOWV4Sr1sYF2W2x2Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655784429; a=rsa-sha256; cv=none; b=ei3ryWFG+LtNElq72JTHjmRuiZZm/dvzDta3Eub7XGCzwCRJNsL8b2p9G7mXW/C+D0pu1x Xqsn2PpZR8idM6Dvd9AN1CiUaiIk8WxeaTAD4CZo8igzPnMwg7Nz2WENh4WnEeJYkX/ziK +4fFpiyljTUQWYl4EXWlD2KY8Sb8eE9hEeewlLa0zbNbsd4ioYdBGz38tRtMkEIkmIjqfG 1SgiBdR+1qBoQpXODjj6i2xb8islvja+I+XjOFb+/TlUoJrxf7RsGuoFV0QJdiS471kwcB lTVRDpIHPoxIgN9SRRvif413RGXinyH3osLi+oUQpnX6D5yKTBXkxwFr7NkqGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hFhzOynF; 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.47 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hFhzOynF; 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: 7E43510D1C X-Spam-Score: -8.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: eT2lFO5P3k4w Max Nikulin writes: > Consider the following case. A user has 2 virtual desktops dedicated to > rather independent tasks and an Emacs frame on each desktop. On desktop > 1 she opens help for some function with aim to evaluate if it is > appropriate for some particular purpose. Next she has to switch to > another task and applications for it reside on virtual desktop 2. To > proceed further she has to read several help pages relevant for task 2. > After completion of this task it is time to resume task 1 and to switch > to virtual desktop 1. Does a window with the help buffer still display > the same content as before switching to task 2? No, context on desktop 1 > lost due to some actions in the Emacs frame on desktop 2. > > Such synchronization is against multitasking and I do not like the idea > to get it for org-capture as well. Currently read-key and modal prompt > is a kind of excuse, but the idea of new menu library is non-blocking > keymap-based selection. I understand. >From the perspective of the library being discussed, what you want does not look impossible. The other question is altering the org-capture code. I think that it is too early to discuss org-capture part just yet. Lets first finalize the generic library itself and discuss the appropriate adjustments to org-capture/org-agenda/org-export/org-todo/etc code later. Best, Ihor