From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oK4EL5k79GR6ZQAAG6o9tA:P1 (envelope-from ) for ; Sun, 03 Sep 2023 09:54:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oK4EL5k79GR6ZQAAG6o9tA (envelope-from ) for ; Sun, 03 Sep 2023 09:54:01 +0200 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 7D96E31779 for ; Sun, 3 Sep 2023 09:54:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QrCbAJE1; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693727641; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rddubT0JntD/P3vqwrbrfGXRtXEj/UTcZBDr/7kd3e0=; b=a3efkY+V7iv9W9VnLrPan0FqXfSgTlZwZkXlnyqbQx3bXLSVfChcAxdEqWapDhH6+JuTJj VAun9mETewRsfT5poABbVxhsxw+GK6D3q2z1HGTbI32cjaaOvjJkfaUgBYfEjBNSZ+OGWa kNcNK/UhGZ9Ym7vQDGtBiYYHs+CEWhMCqY7m96xy59Mx38iLfoZRkKBlulIaM29JM0XLxv i1DPbYDSYaW+tx0l6NNwbmYr1DnRPhXq+OQSrePK3MBrOHg2dY+cALEtHJmrL7Ggp4QA/r CB8zWbzrOXPCy5EnM2r5Vq1fc199Kyw5NXzx4Y3aJ9NkW6l6WnJRb14dvUhlzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693727641; a=rsa-sha256; cv=none; b=GF2XEvYbQCbIITQUdRlRttu7qXuV4h31INX63my5rEyWT5hwl5CJKOpSc/bt2QgWBMwBAv KGnU4aql3PNkjDvwZE1H0MxaC7vTVwaxV20gnmC9c3VnxhGTuHuT7hm1cVdjhZS69qpXuZ ZmMFQvvOf+AgGtqJp/8l7nHrvZB9XSDJQHzoXwf8aGEgDpLnpBjGE1I0KRBkXrMxDEledY z1HFckCiIS6XZzVFbhywe/KZ5q866milCivBYAp4GejcBgBfLrtUc8IPTMRlxQfRXzvl6N Lb7YlZ3j4v6KsIsSK3CsxCJH1asCry3oumDblhBdVC50FGhj8y4akzuD0Gf5oQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QrCbAJE1; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qchuS-0005b5-Et; Sun, 03 Sep 2023 03:52:40 -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 1qchuQ-0005au-R2 for emacs-orgmode@gnu.org; Sun, 03 Sep 2023 03:52:38 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qchuN-0001Ja-90 for emacs-orgmode@gnu.org; Sun, 03 Sep 2023 03:52:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 15C5F240101 for ; Sun, 3 Sep 2023 09:52:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693727553; bh=57PUjQrvQKJeqLTFK6kqFUsZuYakl+IqPZsJ5LqPcmg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=QrCbAJE1IxXzNpL2ejQ7EEZ4EMJskuhptjZ+zfdiCEWpSnY7ixAf5gVl9CMuN4VoE 4RFfRFALOXUvl1Ptlq4DpRzGHSKZT2pas97N+g4VTHUxdvfHQr1zrVMez5aGbFM57J RYgD2PRJvhBt632n1Wk9chUy5r9vaeHn03cDz7Jwoyfvl2ZzmdNyGGnUuOcDMDPugo HFmqz8dp+XkFav7T1cFpq2Fkxqgj9gSnEipRUdVkk7aIrlpN7uTJrVlvNLXVv7anr6 fKv6MKoagK8LLQ/3eOmiIcgRgCxlzK1TRrl6mXdpPGKC+oHs+aR1znU13lZ0v3wzl7 IygRuR+QfV1mA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RdkWh39Dpz9rxL; Sun, 3 Sep 2023 09:52:32 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3mpjk70si-emacs-org-9.6.7/share/emacs/site-lisp/org-9.6.7/)] In-Reply-To: References: <87il8v2q00.fsf@riseup.net> <89434f4f-8aea-23f2-bbfc-3961c18f2154@gmail.com> <87a5u6tgb3.fsf@localhost> Date: Sun, 03 Sep 2023 07:53:15 +0000 Message-ID: <878r9nofpw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -9.30 X-Spam-Score: -9.30 X-Migadu-Queue-Id: 7D96E31779 X-TUID: iyDCBEsxywUc Max Nikulin writes: > On 01/09/2023 16:04, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> However I do not mind to have an easy way to delegate URI from :export >>> function to the link transcoder of active export backend. > >> Just make the :export function return nil. > > I missed this feature, but anyway it does not work as expected. > > (org-link-set-parameters "tel") > > or > > (org-link-set-parameters > "tel" > :export (lambda (_path _descr _backend) nil)) > > strips link type and exports links as e.g. > > \href{321}{call} > > "tel:" is missed. Each backend has its own hardcoded list of blessed > link types to preserve link type/protocol/scheme: > - LaTeX: "http" "https" "ftp" "mailto" "doi" > - HTML: "http" "https" "ftp" "mailto" "news" In `org-latex-link', (path (org-latex--protect-text (pcase type ((or "http" "https" "ftp" "mailto" "doi") (concat type ":" raw-path)) ("file" (org-export-file-uri raw-path)) (_ raw-path)))) is fishy. We may simply use (org-element-property :raw-link link) and leave special handling to "file" links only. Does it make sense? > Actually I had in mind more flexible delegation. :export functions > should be able to alter URI, attributes and to provide description if it > is missed, but did not care if '' or '\href{}{}' should > be used. I'd call that :filter rather than :export :) Have nothing against it, though it is not 100% relevant to this particular report. > Easy way to add protocol/scheme should include :follow with `browse-url' > as well. Sorry, but I do not understand what you are referring to. May you elaborate? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at