From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uADJBSX81WOrSwAAbAwnHQ (envelope-from ) for ; Sun, 29 Jan 2023 05:55:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0CvcBCX81WPXbgAAG6o9tA (envelope-from ) for ; Sun, 29 Jan 2023 05:55:01 +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 CBD2114036 for ; Sun, 29 Jan 2023 05:55:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLzht-0002rP-OV; Sat, 28 Jan 2023 23:54:21 -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 1pLzhr-0002qk-Nh for emacs-orgmode@gnu.org; Sat, 28 Jan 2023 23:54:19 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLzhp-0000YA-It for emacs-orgmode@gnu.org; Sat, 28 Jan 2023 23:54:19 -0500 Received: from localhost ([::ffff:102.85.217.47]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000010B84A.0000000063D5FBF9.00007047; Sat, 28 Jan 2023 21:54:16 -0700 Date: Sun, 29 Jan 2023 07:18:54 +0300 From: Jean Louis To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Link from orgmode file to E-Mail (using kmail or notmuch) Message-ID: Mail-Followup-To: Max Nikulin , emacs-orgmode@gnu.org References: <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 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674968100; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=4trw8AK8Mbt+L7GQsK4aJVtcx5efiaUNRGoPgWvK0wI=; b=bjH669gXhM8EfeuNCscUIHnker6I5Q3xo1rU9rS+7XxsgMB6LrMPGkh7z15UnAjyVnt7+0 srZ9c2GpYYjyRUJDOAXAMAFqTQqwOZ/e2sS00avUnYCfCEK6JlDh8C/5Msx/cOWjEQld3v o14PrOxj0Ns3LzqpfzuiEB9IRZWaH4nnLZ6JOmzr+UHaiK0kIG0o+daJ69UFMIqsO+3/Pg QSfhXEWfvfOz/6gPjVmqoMOFmY9gRY8ktMh9xR81yPJQPpYHQ7Zl34wsBaA9LlETEM+T7n Du2jdbYC+ZKBd2D4wDqdgAzBTNe7X1e0qRx/P5Q2h9XMOAGIKQmN6nYf/wSr2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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=1674968100; a=rsa-sha256; cv=none; b=qkqnioyJilD2V+U9Hhs86b+PYypfaTrd5DCjc9BGT8h10Wjne9Ofh2u3HmkE7ys2Vtmn6X BzCj9XD820WlPiLXyh+6mUP29uThUbNJ/ZZNYTQOmrdJfOG5v+jyPdKfJeCG09yoDJnBOd /nypdcQR8iGcl4PWrJHqqidZL6UqKQH1joUXYcOKrN/7HZOBkc81UlzAGBAq6WVeJxdxNP ynTgGm9oOusneic2Hr5IkcBCDQVRiO6efFPcXiUln1lSaVBYwZ9zwpdDFOCSG8D1g9j5RI He8de7q7zN3GsvfxKbTDgkusdk39p0y6FpHfa4LwXuWFB3nZYbmhMzc2ivoB8w== X-Spam-Score: -2.87 X-Migadu-Spam-Score: -2.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: CBD2114036 X-Migadu-Scanner: scn1.migadu.com X-TUID: cCjzgngVqwQi * Max Nikulin [2023-01-27 18:22]: > 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? I am aware of inconsistencies, and I wish Emacs would have it centralized. > 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. Yes, there are official, unofficial, and just that it is not user option means nothing much, I am adding to that list what I wish by using `add-to-list' function, as just as `load-path' variable cannot be customized with "customize", it can still be changed with `add-to-list'. > 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. I got it. How I understand it, Org should be more deterministic and for that can't use other available libraries. > > 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'. browse-url-handlers ➜ (("gemini:" . elpher-go) ("gopher:" . elpher-handler-go) ("about:" . hyperscope-about) ("hyperscope:" . hyperscope-url) ("e2dk://" . amule-handler)) it is user option to be customized. It is obvious that my idea that URL schemes should be unified may be reasonable, but there is not enough programming functionality in Emacs to allow it to be very deterministic. And thus Org has to make it's own URL handling. That is how I understand, correct me if this is wrong. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/