From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oIAfEJwXUGDUCQAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 02:27:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KPfoC5wXUGBuJgAA1q6Kng (envelope-from ) for ; Tue, 16 Mar 2021 02:27:40 +0000 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 9C2D1C7BF for ; Tue, 16 Mar 2021 03:27:39 +0100 (CET) Received: from localhost ([::1]:47746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLzQo-0006F9-15 for larch@yhetil.org; Mon, 15 Mar 2021 22:27:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLzPG-00053s-7i for emacs-orgmode@gnu.org; Mon, 15 Mar 2021 22:26:02 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:35573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLzPD-0006fv-D2 for emacs-orgmode@gnu.org; Mon, 15 Mar 2021 22:26:01 -0400 Received: by mail-lj1-x22d.google.com with SMTP id a1so18654239ljp.2 for ; Mon, 15 Mar 2021 19:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=5vAqJjwnuhvOfYMAfDVF8XeuwKbRQhaUU+BlXPzVP+M=; b=dWCuG9EOSzixJSdWfRkIpl8NHsOS7hnI4Ye+xUr+CLFMZyLMftunxYcaa8N2kDph4f KAPLuoClD5d0OJN6llDIrnHSUdAKPr+yH9MMsLsX92/7kPgC+y1plfMB0N1SJRdkLwGH 99NKydZeudWYzbR83/VKkPCLRZK6WlYfJ1vpQYFx5BijsLfvlGDvdkKYWXQppkAXJrpX wuOsLNj3gic4t5IB7QnF1JX7B1qeJ7qbx+jJARC8R4Ucp//8AWj6Wa6PKa+sB+JQW1ZF RSIbd+F7EdVkbMQIAhC0O6xFNn8zuieDJ6KK2YiWUdiwMnmLTbqdRJ6t7g8/XoOOQZGI qwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=5vAqJjwnuhvOfYMAfDVF8XeuwKbRQhaUU+BlXPzVP+M=; b=htRYT7hTV5KYGjEPtM9/IXeR7gBn9FgT54OXPTFsasIFJ+iC8eNFCmqQaf/FmwpLeV yJSP61eGFxv1xDjPEWfs0gbf7ImjU8bi53+p5xDlKUVaNZcnCi++Pz2pkmTrxQchw0Ly Uei5r+uB5bWb/th/l/YTzVD9niURQErODXc1NbSFkyWHASr+7+3mmkB9ePSigfb5mY9a febv+UDGPlUtxs5+fJuZSEKEf4an9fQ5wIyk0hogNonjyc+0erBA6AEvhoYAKH2qHcoX kMNBk2/1Eee5zvddLzivJgplNvFnt+UPvA2cjepCB/xCVu2+WReKVhgf9Xdy5pAnuSKc xu4w== X-Gm-Message-State: AOAM5312hBNMQt9zQWrcQjuwthFWUgDhznhyDse90H1f00xNezcfra50 sU4kdjAzzvANpKRJxtdI6tU= X-Google-Smtp-Source: ABdhPJwvXEF3VW90p24wp4e5U1xq2Pgb9XBxND5kZHenGV/rREwhKmHnFXPG4OIs69U0CO3onCBqYQ== X-Received: by 2002:a2e:b537:: with SMTP id z23mr1152234ljm.350.1615861556934; Mon, 15 Mar 2021 19:25:56 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id u3sm2842981lff.225.2021.03.15.19.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 19:25:56 -0700 (PDT) From: Ihor Radchenko To: Joost Kremers , emacs-orgmode@gnu.org Subject: Re: org-capture: question about function to create template In-Reply-To: <87eeggh0r5.fsf@fastmail.fm> References: <87eeggh0r5.fsf@fastmail.fm> Date: Tue, 16 Mar 2021 10:30:01 +0800 Message-ID: <875z1rvniu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=yantar92@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615861659; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=5vAqJjwnuhvOfYMAfDVF8XeuwKbRQhaUU+BlXPzVP+M=; b=riTBV6hYltgbR6vVVT4M6wvLZYJj0E4uSx3ijBbsFlJy4y8QSXQrHl5s74I2286uBLtmed aIKe8ySXOV9EMg6DESonGZEiBfQZRYQassDZW+QHNa+EsMyuFY4kIUoAw4K2DyUfehuYU1 rIu77+VrBbRrbZgmjyDKy0u7Sva3JlOnkcs3gB30YFmfB8r5Xc24gTHKMKaxVYHgaEXlwa EZi4VqapyLtn9bIE+j+RNzzsOrQNCh7ORmTXtONGwCFPVUQp0MRgvDrk75vDN4m0q3f8sN Wo9NNVbKiebjhOA7JmKDqyMssOM4prSkv1kkzigJDMTGYDkL8SNP5dDp4hpOeg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615861659; a=rsa-sha256; cv=none; b=W7R4gUH4uy1d7cKDpmvy+CI/VdPeMjamAcqz16eRX5npoI0uQmAWsvuJtOrxYrdxeQW85H dPFgOTdLwbmuekfdUPqxScalwUFebU1MHrW9TNwGivoIea9gVCd0pW0rcXDWvGyamgK/A7 HC6RrG6jcaGmEAK8c6hcN/D1SUQr0YnZX0mVw5INsdPtgb3AvcPuj60OkZ1PTuFWPDXvpI 4iULPRQ4PHVC/ViR1eK7YQPIH37TaX5GfCtTkc2xXl9pdmTd3jn9TuwRScYDOSHcWGl68Y sW/kzuSQcxNEH8SOasYQVH2tUHCUh5Rv7DTBguTzo54RSuvQ6yksUkzQ8D3aKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=dWCuG9EO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=dWCuG9EO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9C2D1C7BF X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: 44/thjg15BbF Joost Kremers writes: > ... I was wondering if there's any > way for this function to access the state of the ongoing capture process. > Specifically, it would be useful for me if the function can find out the key of > the template that the user selected. See org-capture-plist. Also, you might find https://github.com/progfolio/doct useful. Best, Ihor