From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cPJCI4IV5WPqSAAAbAwnHQ (envelope-from ) for ; Thu, 09 Feb 2023 16:47:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UCFDI4IV5WMGVQAAauVa8A (envelope-from ) for ; Thu, 09 Feb 2023 16:47:14 +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 3B32D3968 for ; Thu, 9 Feb 2023 16:47:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ97u-0002xD-7N; Thu, 09 Feb 2023 10:46:22 -0500 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 1pQ97p-0002u6-U5 for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 10:46:17 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQ97o-0004Ya-9V for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 10:46:17 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pQ97m-0000xj-66 for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 16:46:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: [PATCH] ol.el: Recommend `browse-url' to `:follow' links Date: Thu, 9 Feb 2023 22:46:03 +0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------wsC7vkA6U5U8fDcMwyjipT09" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675957634; a=rsa-sha256; cv=none; b=JwcpjjwHKrfuC8edT4ySYVdoQDWHGW9ou4Cn9s4tQcupqLagi7bY5BadFzbhubDIc8U3tS z94bEIVcNW4PWqTWtKYKek7Z67lK+tAYRWPbifgWdXY+TzXoLTSYP+69hPhdllxcl4Tj76 UjUiq5vRshiltiT40+diDsEA93R/o49IfqFq0IoD/5ELKp5DsLPo9uIjm3LTcfpWHxXgAO pgRMUhsn1x68jkcHMD2F5HgJtmPoxCdimXSJG17Tm7Y0KFgMpPMkCPtWym6e9QpZnM+uiO gUnua1ffMstWYoQxGi2oCliVs3SRXK7a0R7hkwJ3mcUDm0OkM/UKeN5bP4mskw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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=1675957634; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=tmFwyzz6wTKJw+7MLPu8mjtfjDD3O7YDliRQ+EXwq+E=; b=itLAvqn3KspTVtKLzeJjxzxPTThpxFI9Y5t/CHg8xghRxCkp+iPsyYc90rylYxlkHeaPBj EvxERmT0n6T2cCgMYtzc9VZ4ffyOiO62+oBAnuUpLdd1zKBPX/NxFJXh90ZIeacRawQnfm P7kVp9Sn0pnMlAIhMVRVuh1wV3YX/6BPP/GVkSBRYKM/MITmwSLqhPNTlFkPXJ+WFGCD/a uAwty3HYjrNHJe+HvygKSrv2W/h/xHit1x93w8bksxM2ApWJB6GiCjUEKnlPNvLVDG4VNs QIYx3dNj5HNqX/kU9Oiuzyga5Jn6eh8aFsTiFhr/iL4rZvRZHS4DfZ+K4ylmqA== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: 5.20 X-Spam-Score: 5.20 X-Migadu-Queue-Id: 3B32D3968 X-Migadu-Scanner: scn1.migadu.com X-TUID: nuh0ER7DasMJ This is a multi-part message in MIME format. --------------wsC7vkA6U5U8fDcMwyjipT09 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I think, it might be helpful to mention the `browse-url' package in the docs for the :follow property of `org-link-parameters'. Writing code to launch an external application may be tricky, so it is better to delegate the task to existing utilities. --------------wsC7vkA6U5U8fDcMwyjipT09 Content-Type: text/x-patch; charset=UTF-8; name="0001-ol.el-Recommend-browse-url-to-follow-links.patch" Content-Disposition: attachment; filename="0001-ol.el-Recommend-browse-url-to-follow-links.patch" Content-Transfer-Encoding: base64 RnJvbSA5ZDZiMjE2ZDRiZDY1NGY5NzZjZDg4OWRlYzJmODA1ZjA1Zjc2NDI4IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv bT4KRGF0ZTogVGh1LCA5IEZlYiAyMDIzIDIyOjMxOjUxICswNzAwClN1YmplY3Q6IFtQQVRD SF0gb2wuZWw6IFJlY29tbWVuZCBgYnJvd3NlLXVybCcgdG8gYDpmb2xsb3cnIGxpbmtzCgoq IGxpc3Avb2wuZWwgKG9yZy1saW5rLXBhcmFtZXRlcnMpOiBSZWNvbW1lbmQgdGhlIGBicm93 c2UtdXJsJyBmdW5jdGlvbgpmb3IgY2FsbGluZyBleHRlcm5hbCBwcm90b2NvbCBoYW5kbGVy cyBpbiB0aGUgZG9jc3RyaW5nLgoKVGhpcyBpcyBpbmRpcmVjdCBmb2xsb3ctdXAgb2YgdGhl Cmh0dHBzOi8vbGlzdC5vcmdtb2RlLm9yZy8zMjE4NDM0LjQ0Y3NQekwzOVpAbGludXguZnJp dHouYm94LyB0aHJlYWQuCi0tLQogbGlzcC9vbC5lbCB8IDE0ICsrKysrKysrKysrKysrCiAx IGZpbGUgY2hhbmdlZCwgMTQgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL2xpc3Avb2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