From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yM8uL3BFkGZdhAAAqHPOHw:P1 (envelope-from ) for ; Thu, 11 Jul 2024 20:49:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yM8uL3BFkGZdhAAAqHPOHw (envelope-from ) for ; Thu, 11 Jul 2024 22:49:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720730992; 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:resent-to:resent-from:resent-message-id: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dxw8NcnhdLECpTgnTZJI3N4IWM996AuXjUUV9wLjSsc=; b=mq39kUhT+Pd50utCWoGj/F17O9b4NUnflzeOLPNC5R64dpm3rlPw49vSXzTQMkbPNczwOh yShQ5bt7h4KJtLMCMf1b5kgvZd0YfwEpH7yF8YBu64QEZZeLUMNOBQPbDmWPSOhbKWlgPo bKiArtxfvYOSIULQEZH9iboG3OR0h8QQc9kXA+trnAdTPWj8eyLNabmLLXSiEQc0nLcoMs JJXp92AF3vln6FupR/UPSv/JDTL+oQuKHJufCxotyKxxvQYBNkbS7r/GQiZRU+VGSXSxxI Wy1tbyC3dmTpxi9bAQCrXAnOP/k8NSPr9MJ6TeKPzR+J0Tg1FMDx6w9Y5KoavQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720730992; a=rsa-sha256; cv=none; b=O2Nmvzan91mp0QAQRY3Q3XWITS0cUXizG1umLWTLhuvOQaUhubhJuxPTew+99iYjKpksZF kWyAEjFcXnP8O31bmgvtDEzHFYCb2/G0sWF73o9hDpil08Ilpac41yQ5Ge4K6c4FcKNUue M3ZbmuEqpA57tcO16LoFQG84XtKLmgvT3TV0NZ7Y5anSZjkw3KJ3WcrOt6iAEfM/prylEs jB55Pxu7rZs0p8wwLP7GFosYvNuqQhogxtLkAUnxsS77L8D4uUW8yzXR/3UWQseTLJM/ll FwP42Yx7EATTr/IYu0gtyQ0eSmp9+olYmaT8jqvpenr/SxyRBDVJCNIpbJ6OxQ== 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 916C316D9B for ; Thu, 11 Jul 2024 22:49:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sS0iw-0000WP-1n; Thu, 11 Jul 2024 16:49:06 -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 1sS0is-0000W4-C2 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 16:49:04 -0400 Received: from k-7.ch ([185.31.100.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sS0ip-0004xL-Rw for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 16:49:01 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 65F79E8109 for ; Thu, 11 Jul 2024 22:48:56 +0200 (CEST) Resent-To: "emacs-orgmode@gnu.org" Resent-From: =?utf-8?Q?S=C3=A9bastien_Gendre?= Resent-Date: Thu, 11 Jul 2024 22:48:55 +0200 Resent-Message-ID: <877cdrwt6w.fsf@k-7.ch> From: =?utf-8?Q?S=C3=A9bastien_Gendre?= To: Ihor Radchenko Subject: Re: Capture, template expansion and keyword for link type In-Reply-To: <87ikxc58xw.fsf@localhost> (Ihor Radchenko's message of "Thu, 11 Jul 2024 13:56:11 +0000") References: <87sewga4ni.fsf@k-7.ch> <87r0c08ldo.fsf@k-7.ch> <87ikxc58xw.fsf@localhost> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Thu, 11 Jul 2024 22:47:24 +0200 Message-ID: <87cynjwt9f.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch 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, SPF_HELO_PASS=-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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 916C316D9B X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.50 X-Spam-Score: -8.50 X-TUID: hfwbM5Zzn6JU --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you for your reply. I have write more, after the quotes below. Ihor Radchenko writes: > 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 But how the "%:keyword" information are built=C2=A0? What I have understand from the documentation, it has something to do with a "link". But I found the documentation unclear about this. The text help for "%:keyword" only say: "Specific information for certain link types, see below." And bellow it say: "For specific link types, the following keywords are defined:" And the footnote say: "If you define your own link types (see Adding Hyperlink Types), any property you store with org-store-link-props can be accessed in capture templates in a similar way." As I didn't plan to define custom link, and read all the manual part about it, as a simple org-capture user I have difficulties to understand how the "%:keywords" are generated and how I can know which ones a available in which condition. At least, based on what the section "10.1.3.2 Template expansion" of Org-mode documentation tell me. Mak Nikulin say that these "%:keyword" are created by major modes. Ihor Radchenko writes: > Not directly. Additional keywords are stored inside undocumented %:query > keyword value. So, I would need to use the "%(EXP)", and as "EXP", I need to write Elisp code that will extract supplemental data passed on the org-protocol url during the call=C2=A0? Best regards =2D------ Gendre S=C3=A9bastien --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmaQRNwLHHNlYkBrLTcu Y2gACgkQtYb3x3I54p4N7w/8Du72t8muZZRg1t3ve2x973+YIB+TjA/V3jDivwf1 AD+4xIP9qRngrHz4sulb1aU43mdECWPsuqq3RV86w+yv0H1Jx9+82Tfumdvo5vKQ nmiaCkKc0RHbrxnij2RSb/NZlSHLsUdul7g89l0ZzITr/WUclDz/v6dn0NX8PP5/ tTKoSE8S0t4KX18Li72kJGikLjX51mz5sbzxfIcr8xioWc6ViEyvwC9ZKh5dIrod H4mDINI6HLdZELvxk9QX//zD1NcKSrlyetRfg9sq8NiCss2J3LbE5D38cFnVra93 WY7/wq7H5B+9bdvmyn5wQH1aIJ7tzYUvQtDH0CxAOM7hTXv29InQVCfnTvKB5er0 H16Kq2/DbH1orMuJ65kMwz7sUdX4hb9I/MafgHsXAu52vcaH8AwZPWGhh11U1JqZ B0HK4LafKSY90qmreOIzpfDgvDDTZDKHTrKSLSqUL4U7TwsLeb6hjqB99cg+5j7L MI1PUajz91j2anSMcIh1ADtBqhF5ryJpyWtEIopHw9yfsZO5eOv629e15Tgxl4kb O5m2BqLzmkCeLXH0eEukiteHLIkAHtFeyf5J8JCwwJQxDrixy2OfrUU6ywpt8XL7 flpgCa63lbdQU71MFvDMOT76YOJ7Za6IwNP/4WWRSYiq6f2QfS6hkxfKvMuYm7vF Cno= =M0yo -----END PGP SIGNATURE----- --=-=-=--