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 wFBcM83mj2bVdwAAe85BDQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 14:06:06 +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 wFBcM83mj2bVdwAAe85BDQ (envelope-from ) for ; Thu, 11 Jul 2024 16:06:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AJyPcBIs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720706765; 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: 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=kPZ7GBZCoI5cZjvVdC32FPX6u9BJzV/KpsYxuqOuhLg=; b=F1qe0fj61DCEOkYMLij10sI7hg+gXxEjHY3BAOMoNfQF8SGsnPxwyBTotyFGerFK0iheR2 AAIu28C/LEd8kJSrSb6odryOSBha2DRtEim8yr7uafQPVeE0AYWU9599QdrguuYsaeZvHt M1v74forsCe1LEOPCnSuCkH3seCLAaCuRM5bWsGBN7eL5sIpaeHrAgo51bIielRDwuxaYG Zzpv42F+fIC5uNN1zUeBaVDGi3ExADkWv9+6Abqmqw3kWGEG+Ag7KLwtKob/I4kt75Z/gU ob7dVI+Dcv0iP+lzrh+gdxAd/jtFLej2YLMvZiow9PK1bb64+WK/Lkg+kqPEiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720706765; a=rsa-sha256; cv=none; b=efIPlIIkNwTH35SeNlG3mscSHkRG1ecKWnVLnLKxRH40uzcs2qSA9orSb1llUQEdcgMV5f etNnoX03tI0hLMz6au3h69bMujkDLC6g0cEqPsY8/hkaUq3syNXCRSRC6rWveNsbZCDFpt rUex2peffCBMMA+/GMG8xjPFjrrA/qX+wKqN/l9ruOCEPLP5FS/4w+xerzWazNq1JaoN5T zsRk/aAwusl7sAZnbBIACuiaCksGibTsytOG+i5BSaXCU0Zh1H3G2kpyslOLSABjL3+3Z9 45wVQjIuoIcClGcyulOHY8zk5EmViytmSwFPLLMFJE1kM5hjoa7+3Cr0NUKKCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AJyPcBIs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" 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 999E671599 for ; Thu, 11 Jul 2024 16:06:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRuQF-0001Ua-Gg; Thu, 11 Jul 2024 10:05:23 -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 1sRuQ9-0001GG-D1 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 10:05:17 -0400 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRuQ3-0007ZK-Eb for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 10:05:17 -0400 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ee90f56e02so9583481fa.2 for ; Thu, 11 Jul 2024 07:05:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720706706; x=1721311506; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=kPZ7GBZCoI5cZjvVdC32FPX6u9BJzV/KpsYxuqOuhLg=; b=AJyPcBIszxOFJMA+4/1WOBPqEjeFutB9AoSIjnTjQifia5gqVkyQ5BhepX5Hzjj6sb xTwTY0eUVllbtiXdDaEWm9130NInnr/6LGYAiTm7t5ocHb+y6gsp5F8ePDxBzTJvD/mi Q9Z1PPlGUfrtT7OpQXdN+rEQ0zWAE7naCtqewFxtiMeJoznIEUd7kdRbHfeuvxvvAraq IA48necXkk57N5PbrpDc0R5KDExw6lx9cBz1NPLPLDqXasqEEXBIsNWvxaQHNN3+Pd/W OtDnJJNjvoVrGtsoaG7UgqNgOHn93FA9lKzIjM+dvEReB+9WH33QAvWr8IDQi5qIcnrT ROgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720706706; x=1721311506; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kPZ7GBZCoI5cZjvVdC32FPX6u9BJzV/KpsYxuqOuhLg=; b=Ao3WsKvbHIbi3dUtffKf6Dy7QfqMPD1xYQi4aPnwqT+5ysnTo62MoOO/l3KK+FPbKx Qyx7/9RPdcc43rWHl14XE/MV1d7uAB++P+VeO/XhHUBggrDlEqJVwlyDcvrZHOhJ8ocq ImKDPjUzlTQkrgy9OKdlS6bdZrakZJ9zB5fIt+JVVsrrYt2kGeG6ti6npgxGB/lFQ64h fNsGVJUU4xywhDDAZnQGsR4vGGLb+oGUEqXJOcZl9YOxt3RwqflgT1WdWnErfTn50Qcq 5rLGKjMhsXVKsLZ83s7MfVUnTmu+rXPw2hDihfwCTTcG0FjTIOW/2ZXVkCTzq6B/1NBF X9ug== X-Forwarded-Encrypted: i=1; AJvYcCX4gJ8I9V+vY1TFtL12JO1jEwD+QEYxsLrRVcYOWEtkaTdS4ppqW7nmbwFD+RdiCzmHFlhsiYCw0PP6sbpSWRtgcOmig5s= X-Gm-Message-State: AOJu0Yx68SwOD76Cdzx7w3ISAka8KX0x8ZRhoJEk3e6ngkJK+35UjeIw 0yOHgHOSoKdmry7/IqJIQ3KoElGsFdNGiONC5bNPmqIsnQZf/t/T7VmDtw== X-Google-Smtp-Source: AGHT+IHnihKX9er4QtUJ9CLJLCoddFmCtPqJt4hD0KG5N6nHaRfR4mRUXMhy3TWfWRAlDCvTT3c0Rw== X-Received: by 2002:a2e:81c4:0:b0:2ee:84af:dfc4 with SMTP id 38308e7fff4ca-2eeb3197990mr53665151fa.43.1720706705636; Thu, 11 Jul 2024 07:05:05 -0700 (PDT) Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id 38308e7fff4ca-2eeb34886efsm8657471fa.126.2024.07.11.07.05.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jul 2024 07:05:05 -0700 (PDT) Message-ID: Date: Thu, 11 Jul 2024 21:05:04 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Capture, template expansion and keyword for link type To: =?UTF-8?Q?S=C3=A9bastien_Gendre?= , emacs-orgmode@gnu.org References: <87sewga4ni.fsf@k-7.ch> <87r0c08ldo.fsf@k-7.ch> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: =?UTF-8?Q?S=C3=A9bastien_Gendre?= , emacs-orgmode@gnu.org In-Reply-To: <87r0c08ldo.fsf@k-7.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=manikulin@gmail.com; helo=mail-lj1-x22a.google.com 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, 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.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: -2.29 X-Spam-Score: -2.29 X-Migadu-Queue-Id: 999E671599 X-Migadu-Scanner: mx11.migadu.com X-TUID: 8WC1pS1Hieb8 On 11/07/2024 13:59, Sébastien Gendre wrote: > 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 ? > > When is it defined, and from/to where ? See the "Link type, Available keywords" table in this section. `org-capture' may be executed in various Emacs buffers and available keywords may depend on major mode. > Is it possible to passe more keyword through an org-protocol call ? Some time ago I tried %(exp) elisp snippets in templates (untested) "* [[%:link][%:description]] #+BEGIN_QUOTE %i #+END_QUOTE %(let ((bla (plist-get (plist-get org-store-link-plist :query) :bla))) (or bla "No bla"))" emacsclient 'org-protocol:/capture?template=s&title=Hello&body=World&url=http:%2F%2Fexample.com&bla=foo'