From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iKiDKJbU8mHCUgAAgWs5BA (envelope-from ) for ; Thu, 27 Jan 2022 18:21:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yP/fJZbU8mFOVwEA9RJhRA (envelope-from ) for ; Thu, 27 Jan 2022 18:21:26 +0100 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 486D61825A for ; Thu, 27 Jan 2022 18:21:26 +0100 (CET) Received: from localhost ([::1]:58926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nD8Sb-0006aw-2b for larch@yhetil.org; Thu, 27 Jan 2022 12:21:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nD7wM-0003QX-Rb for emacs-orgmode@gnu.org; Thu, 27 Jan 2022 11:48:07 -0500 Received: from [2a00:1450:4864:20::132] (port=43635 helo=mail-lf1-x132.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nD7wL-0000bt-90 for emacs-orgmode@gnu.org; Thu, 27 Jan 2022 11:48:06 -0500 Received: by mail-lf1-x132.google.com with SMTP id u6so6488898lfm.10 for ; Thu, 27 Jan 2022 08:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=SfyX3XiDL5vpZ5bFdO7ecp8HxMfpOJu6Ct6F3hUtvmw=; b=owdhI4kR5ktGprHc5vPyM8mGlyLTmINpYRGR6d9UTde91qf8d55+7iX0kk9NBvbP1r pmxn3Y1YSw3QzFAYwTXqeg6dY1d1mLtPgTo9BBy3bmStr+kFpZTzO1ZpynsaQCRE/ZHJ JRjwkPU4aguoY+cdw9rbYDQaxXEAIfV/Vb5DBkCDykd0/NvNf3WlVcDV2zX7fXL2mDnZ xHFwyh5ujXmYn9M275MrzCzoej+WlyBNpLyNdwuK2wFRslntrpVsN3cloKpDbWOt2UWe 3XLXSjhrcVv/B/SNs7spH+tRp/8ZSvGFXjkbCAPHxw64By2QKSFLtbnlafoX73NGSXxe hW1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=SfyX3XiDL5vpZ5bFdO7ecp8HxMfpOJu6Ct6F3hUtvmw=; b=gpJzCBExcUJ0K40/bm6E+G6E+k0KsqgBfuh/zJQYFTGehywfOG+BOoSC/7CqXT5Rhf Jo+rtPkHumnVK/PrJJHKvvyBwTtdOfxJa5zzLIZvceMUho2ciLeZ4HcQVK00II1aLl+k DiawBip+v0N0zgbeSZ4pSSVaTcc0R4ij4tagouLZ4Q++Cjjk1WCBBJEFi/uWX7gudeKd sNGmIeME/Kj8AjfDsQQ78663c+v6HQx86YtcmMXI/91dfRoyjNSCztV7YMyCufvx/ivo b2ePIJH5wfMcykotSw4AsJ4Tv6ZDDdfxvh6ySY0DVbJSD/UKHXpY8aJoGdDCixyBlDpM L7PA== X-Gm-Message-State: AOAM530gy/nzpKy2RYYvK1Uoo6JRoBzGoELy2gD0jQbR7/FARfTqQOrq +xyo6FBqePMBlX73WbW75s0= X-Google-Smtp-Source: ABdhPJxfC034dMeeOHbeNQcNckApF3/6qsGl6UGhQkhTvvZbrN3EMXnwU4sPwZTC6yVzX1lIKL9/mw== X-Received: by 2002:a05:6512:3f06:: with SMTP id y6mr3325356lfa.611.1643302080673; Thu, 27 Jan 2022 08:48:00 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id x25sm1928096lfu.174.2022.01.27.08.47.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 08:48:00 -0800 (PST) Message-ID: Date: Thu, 27 Jan 2022 23:47:57 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [BUG] org-protocol-store-link does not account for argument type Content-Language: en-US To: Thuna , emacs-orgmode@gnu.org References: <871r0u2j8d.fsf@gmail.com> <4cbdefbe-4f92-1b6e-fe2f-a8213b742dde@gmail.com> <87v8y51aa5.fsf@gmail.com> From: Max Nikulin In-Reply-To: <87v8y51aa5.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::132 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=manikulin@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, NICE_REPLY_A=-0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643304086; 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=SfyX3XiDL5vpZ5bFdO7ecp8HxMfpOJu6Ct6F3hUtvmw=; b=d+z27Tf7P7v1Pyp1eOMdx89+p7lwy4LJVMzGzImM/slktO6C0sIXfppCwsoKaUEp6b7IKP j2NbNC4Q51JtK6zi5uDvefjkvMzSUXSPJJLBitGDFCGcMDhN6o5iMiJosKWO8LVQSrSI/L taBxXfZxanuDJ6cjlTXGUJnmCcQ37wfUWeUvvC09PumIdOYyCTLsykaSe9UtNvQRueCVqg ODPeuwJ5mlgrxqhNhnjtSuCy0yCmKQxIeMA1nXe1ax+DlCSAGvk7Sdrf1C2COZ1B4MB6mT cwe6QBPq3L5x9vqhwgZhf2FdmNpLDV6z4v/L7CNefVVRevdpLYyGH6Q59UfTow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643304086; a=rsa-sha256; cv=none; b=sKqej7fky4qTU9++nSz9PxHCv6AI/zro+vynrNtACN7A9bDeuXbB1TQOqlkWEki9njhd/Z gWnWLInyR2pmY6prqijFfWUVyCa1ARhqbbjdSDQIAfgayrr+Ce9Rr9E4twLG05ckTH5Mxg vxeP7onR05d8rnBCk8WN1gJKKjooibZeq4g4JeNd4UY60e/8WG3pl/buxpkLNIg8txQ2Ih Lhzk6V0phyp+FbLr1K8Yrz5+SXSqLFo8rFODl/BBHq3lHIerKV0E1vAh06IidF+QSpbjAY eKt+oAFuQzLDNfmq+2hdPVU7Qr3GMKWMLLOpWIdGtRHkpm8jXvW9ahvfxjKp9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=owdhI4kR; 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" X-Migadu-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=owdhI4kR; 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" X-Migadu-Queue-Id: 486D61825A X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6sbfgBPRT5Tk On 27/01/2022 22:13, Thuna wrote: > >> Could you, please, describe your actual problem? > > Currently, org-protocol-store-link, as a function, fails to work for > new-style links. > > Doing the following: > 1. M-: (org-protocol-store-link "url=U&title=T") > 2. M-x org-insert-link > > and accepting the suggestions for the link and the description inserts > "[[url=U&title=T]]" instead of "[[U][T]]", which should be the expected > behavior according to the documentation of the function, unless I am > misunderstanding it. See the last paragraph of the docstring: > FNAME should be a property list. If not, an old-style link of the ^^^^^^^^^^^^^^ > form URL/TITLE can also be used." You pass a string for *new* URI style. Maybe there is another description of the interface that should be implemented by functions handling subprotocols. You may look at the tests if you are going to use org-protocol in some special way.