From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0KrJFVzkj2acQwEAe85BDQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 13:55:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0KrJFVzkj2acQwEAe85BDQ (envelope-from ) for ; Thu, 11 Jul 2024 15:55:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="d/mbD728"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720706140; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Ur5kHNIxrSIz6wZ5OFSrmEu6OPL9PU4gpcGhYyKT2Cc=; b=s0dgLr1G+IF4ddY38jHoQC2gBV5S+XozmIosXwpj0Uf3Fx59o6tMiCzf4phucuqFlWRP/H XblrIjRTlTf55Mbi8l5ZiZ+t9PGkx9wDy79Ag/zH5VAirFatpGi6PQXLNZWm+lOMqK5Air Fd0ipmhK6evGeBM1L8mkPxXwpLNeCZ4mOn8AoPnXB3KZSbU3t2sjdpK/upieoMGZzMp43c +FUOCLiuvSNkJt8pj3ewIVV//Na1PG+JBiy2cfwvf8MWiXs97u+877mM1RP4s83TyQFDoD hlnWSochQxlX5NJs3tBOVr1kqmmmkhmiEXo+0SD/yS6OFWEDFDLLPMrL2oI/lQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720706140; a=rsa-sha256; cv=none; b=AmfnVSAoxcQUcDD5B9dkFBXuAHA7tFWG7N01f3vRI3SpUxJpLFayDSxS/A5fNp0+EgXQLs EBd5WNR6ES07BZCUbhuzO2monQjBKp3ShdNFpq0oK2lqEuBnalCmEPRBzK/JvZfW/eKmEo lXzdSjGp542fmTBz0YBs3oi7waVLWgEKgTvuZTpZHEXom2ztOHHDf5csWUUwPf/g//x1D/ m/+BTz14wtijGQqyFl4AnGyy0ps0qnt6vvUJNfXaOJZ/Z7jYRDr7qUKvFY6Mbl+BoATQ32 kr6i5YLxlufxNxvweoK6V1CYfYoHo6vPZPRVPg+iZKQK7ckO3dRMbrgDqmuL4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="d/mbD728"; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 E225467623 for ; Thu, 11 Jul 2024 15:55:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRuG7-00030W-Qw; Thu, 11 Jul 2024 09:54:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRuG6-0002xK-71 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 09:54:54 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRuFs-0003gQ-6L for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 09:54:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3EA42240103 for ; Thu, 11 Jul 2024 15:54:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720706077; bh=+VwQG6rWJ6NMw3MJS51+2K71/sEYkVSEpib5ugMnLxA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=d/mbD72814HpXi72jvovERgTplkcwloANfY3rDjTi/d3OgiBpMaPFwZxE0ZbjqfOD LHpaUycuVxX5QwgiSrOADO5mMXA8GrICLPILHe0ai4MgzMawE/JLpV7Vf4tHwVNgIJ i4ZLR/XJKh/tGmptvpwE7/psbHJiQm+0UlFUdDwRLXBNSpQZ4tEhV6IFdHWqr69Bp8 r06fSJQG50fwDd7EAuE+HmHUKmSvfoPeCum9twJANc2JXYQPp55P5Ps7GFoMyewhuG BuSiwTuqfXDqgfQoEmrmRSMLarWpS+4WQ8D4uktuShsLl1UQbWnq1s5vO92kBgA3Gf NjVaNwGfMrNZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WKbnS6CRrz6twR; Thu, 11 Jul 2024 15:54:36 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: emacs-orgmode@gnu.org Subject: Re: Capture, template expansion and keyword for link type In-Reply-To: <87r0c08ldo.fsf@k-7.ch> References: <87sewga4ni.fsf@k-7.ch> <87r0c08ldo.fsf@k-7.ch> Date: Thu, 11 Jul 2024 13:56:11 +0000 Message-ID: <87ikxc58xw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.63 X-Spam-Score: -6.63 X-Migadu-Queue-Id: E225467623 X-Migadu-Scanner: mx11.migadu.com X-TUID: ZdH0rqPBdCPf S=C3=A9bastien Gendre writes: > I was reading the Org-mode manual, at section "10.1.3.2 Template > expansion": > https://orgmode.org/manual/Template-expansion.html > > And I was a little bit confused by the "%:keyword". The manual say: > "Specific information for certain link types, see below." > > Where did this link come from=C2=A0? > When is it defined, and from/to where=C2=A0? > To be able to use the "%:keyword" in a capture: Do I need to store a > link before calling org-capture=C2=A0? Or do the call of org-capture will > automatically store a link to where my point is before the call=C2=A0? > The manual page of template expansion did not explain it. > 1. If there is %a placeholder in the template, org-capture stores link to the location from where you called org-capture 2. If there is no placeholder, the last stored link is used > Also, if a capture template is selected after an org-protocol call, the > documentation say that only 3 keywords are available: %:link=E2=80=99, > =E2=80=98%:description=E2=80=99 and =E2=80=98%:annotation=E2=80=99. > > Is it possible to passe more keyword through an org-protocol call=C2=A0? Not directly. Additional keywords are stored inside undocumented %:query keyword value. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at