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 YAyULM/r02NUUgEAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 16:20:47 +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 6IuCLM/r02NgRwEAauVa8A (envelope-from ) for ; Fri, 27 Jan 2023 16:20:47 +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 780788D23 for ; Fri, 27 Jan 2023 16:20:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLQWH-0001oB-0G; Fri, 27 Jan 2023 10:20:01 -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 1pLQWE-0001nh-UN for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 10:19:59 -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 1pLQWD-0000ph-CL for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 10:19:58 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pLQWA-0008fM-TG for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 16:19:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Link from orgmode file to E-Mail (using kmail or notmuch) Date: Fri, 27 Jan 2023 22:19:45 +0700 Message-ID: References: <3218434.44csPzL39Z@linux.fritz.box> <860cca44-faa3-ce41-3606-f92b50ee00a9@gmail.com> <87a62bnf4t.fsf@localhost> <21750362.EfDdHjke4D@linux.fritz.box> <939b62c1-34ee-051e-405a-328b841d3d16@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US In-Reply-To: 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: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 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.15, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.148, 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674832847; 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; bh=JVGz5RSotIRVYPMqqNxY0xXsyZOPGRPsT7QWyfBt134=; b=B+/VAUv2Cgb4GhsKIUSspexraed7p8QAdL8ZCN6m5DxrmXAxC5Gp6GfJOh6iPaStxUYl0e CjTn0Y2ibjVvAZRU3r8BWSmaEIJ74MQ9pVJdK9hFmk2wAG6PimswiJsUZHey80pjApPgfm 1fwvNpJAzZy5wuzTEJhiLodBrQhEoFzRN1GgAqclLzVPH+KolW/YIaxEJt8qBVKA0IO/lJ kqeMhtKHR0So7pivnQm10pLnvL4KKWI9do2h5paTq+oOowlKdfDpvFmEhlGSuSlJWISPDy GJtByNKZEKFZfsQhjakbvbFAHJVG4UeTUby0j180X+XFj9ao+xK7twMTf/o5QQ== 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-Seal: i=1; s=key1; d=yhetil.org; t=1674832847; a=rsa-sha256; cv=none; b=R8IqcBshZRmZenBxUBZ8Huv30gWtk64dAUI8oiocbX6JJpS5eATc0a13kd4AwHCIeE7y7F 6DyJWc45Fyy1d902mlJG3rEleEtDq9KAKASxXnOQVH+XgsJN5OQU3I1TDhpN/EVMKylrKF jkUc0Xi6InqIo01B5Zv0ApvmFk8in4QBalew45iAmR5xXPSQfrC1N9JimeWYns0os6B7oN gVL6w/7riDW+Qy4dgWkhIAzCzx7O0PT9A3wykAGRqzgz23jENjXRdZ/bUcZvsVbUGUXg0F xVWttA3cayRJqINFfpn49QW91nV4b8OeCxLk+5vXUrAS23AAfsu6d49TCqCMtQ== X-Spam-Score: 4.13 X-Migadu-Spam-Score: 4.13 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-Queue-Id: 780788D23 X-Migadu-Scanner: scn1.migadu.com X-TUID: DROAOYW5JYK9 On 27/01/2023 13:41, Jean Louis wrote: > * Max Nikulin [2023-01-26 19:21]: >> On 25/01/2023 00:49, Jean Louis wrote: >>> When goto-mode works with mid: by me setting up browse-url-handlers, >>> then I have expected Org to work as well. >> >> Do you mean `goto-address-mode'? Have you had a look into its >> implementation? > > I have already previously mentioned about it. I was unsure if goto-mode is a typo or some 3rd party package. Have you written that you are aware which way it is implemented? List of recognized protocols is not a user option, it is hard-coded and unrelated to the browse-url-handlers: defvar thing-at-point-uri-schemes the list is rather long. On 25/01/2023 00:49, Jean Louis wrote: >> Try to think from position of a developer. > > From position of developer, developers shall ideally think of users, > and users think of the assistance of computer to users. > > Users appreciate developers who make their life easier. Developer must consider other features that may be affected by demanded changes. False positives are acceptable for thingatpt and goto-address-mode. For Org mode balance is different. Too greedy regexp to recognize links may have detrimental effect on export and publish, not to mention that links may need special treatment. In addition Ihor mentioned fuzzy links. On 27/01/2023 13:41, Jean Louis wrote: > In my opinion, features such as opening specific function on URI > scheme shall be unified in Emacs. Generally agree, but browse-url should be ready to reuse its configuration in Org. I am afraid, it means less flexible browse-url. > Org should now hard code new way of opening URL schemes, but use Emacs > settings. Try to derive list of supported schemes from `browse-url-handlers'. > And I am aware that it is late for such decision, You may try to talk to `browse-url' developers if they are ready to make their package less flexible for the sake of Org mode. And finally notice that goto-address-mode is unable to properly handle (test https://orgmode.org) it considers closing parenthesis as a part of the link. In addition there are disclaimers: Customizations to this variable made after goto-addr is loaded will have no effect.